Skip to content

Commit c09f01e

Browse files
committed
Updates per feedback from Jan on PR
Signed-off-by: Matt Farina <[email protected]>
1 parent b32e9b5 commit c09f01e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cmd/lima-guestagent/daemon_linux.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ func daemonAction(cmd *cobra.Command, args []string) error {
3333
if tick == 0 {
3434
return errors.New("tick must be specified")
3535
}
36+
if os.Geteuid() != 0 {
37+
return errors.New("must run as the root")
38+
}
3639
logrus.Infof("event tick: %v", tick)
3740

3841
newTicker := func() (<-chan time.Time, func()) {

pkg/cidata/cidata.TEMPLATE.d/boot/25-guestagent-base.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,5 @@ EOF
3535
rc-update add lima-guestagent default
3636
rc-service lima-guestagent start
3737
else
38-
until [ -e "/run" ]; do sleep 3; done
3938
sudo lima-guestagent install-systemd
4039
fi

0 commit comments

Comments
 (0)