Skip to content

Commit

Permalink
bin/ubuntu-core-initramfs: add /sbin/reboot symlink
Browse files Browse the repository at this point in the history
snap-bootstrap needs to call /sbin/reboot in recover mode when
remodeling.
  • Loading branch information
valentindavid committed Dec 2, 2024
1 parent eb3510e commit 7e53019
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/ubuntu-core-initramfs
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,8 @@ def install_misc(dest_dir, sysroot, deb_arch):
os.symlink("../usr/sbin/modprobe", os.path.join(dest_dir, "sbin", "modprobe"))
# FIXME: systemd is configured with the wrong path to dmsetup
os.symlink("../usr/sbin/dmsetup", os.path.join(dest_dir, "sbin", "dmsetup"))
# FIXME: snap-bootstrap uses /sbin/reboot
os.symlink("../usr/bin/systemctl", os.path.join(dest_dir, "sbin", "reboot"))


class AptRepo:
Expand Down

0 comments on commit 7e53019

Please sign in to comment.