-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
many: move firstboot code into the snapd daemon #2033
Changes from 43 commits
564b0a0
a23ceeb
f55dee1
399dc3a
4f3c74e
6bc384f
d9d83fc
aeed21f
ebfe992
b1b6207
e742175
dfc62a6
0808919
c645f22
eec02c9
f546e75
9adba01
a565297
b84ec73
d24a727
e622f83
7ad072b
6203394
aa004a5
e5733bf
08de3bf
61ec540
842153c
ca47dbb
36acdfa
7a66cba
dfd7f85
dd952de
7497386
cc3aab1
0ba17b9
7714468
774d84f
787620c
5c9ff09
7ad0a55
be6db86
6fe3cf1
f5e92ec
e6587f4
f8253ab
2d11604
9e0ca19
2550642
aab57b9
7d10dca
9c6834e
bad822f
4a5f9f3
eb61a05
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,9 @@ | |
package main | ||
|
||
import ( | ||
"github.com/jessevdk/go-flags" | ||
"fmt" | ||
|
||
"github.com/snapcore/snapd/overlord/boot" | ||
"github.com/jessevdk/go-flags" | ||
) | ||
|
||
type cmdInternalFirstBoot struct{} | ||
|
@@ -36,10 +36,14 @@ func init() { | |
cmd.hidden = true | ||
} | ||
|
||
// WARNING: do not remove this command, older systems may still have | ||
// a systemd snapd.firstboot.service job in /etc/systemd/system | ||
// that we did not cleanup. so we need this dummy command or | ||
// those units will start failing. | ||
func (x *cmdInternalFirstBoot) Execute(args []string) error { | ||
if len(args) > 0 { | ||
return ErrExtraArgs | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would be good to have a comment here saying why we cannot remove this file, so we resist the temptation. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added that too. |
||
|
||
return boot.FirstBoot() | ||
fmt.Fprintf(Stderr, "firstboot command is deprecated") | ||
return nil | ||
} |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,5 @@ | |
|
||
[Unit] | ||
Description=Ready for frameworks | ||
After=snapd.firstboot.service | ||
After=cloud-init.service | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs the same kind of comment as firstboot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, added that.