Skip to content

Commit 7e53019

Browse files
committed
bin/ubuntu-core-initramfs: add /sbin/reboot symlink
snap-bootstrap needs to call /sbin/reboot in recover mode when remodeling.
1 parent eb3510e commit 7e53019

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/ubuntu-core-initramfs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,8 @@ def install_misc(dest_dir, sysroot, deb_arch):
484484
os.symlink("../usr/sbin/modprobe", os.path.join(dest_dir, "sbin", "modprobe"))
485485
# FIXME: systemd is configured with the wrong path to dmsetup
486486
os.symlink("../usr/sbin/dmsetup", os.path.join(dest_dir, "sbin", "dmsetup"))
487+
# FIXME: snap-bootstrap uses /sbin/reboot
488+
os.symlink("../usr/bin/systemctl", os.path.join(dest_dir, "sbin", "reboot"))
487489

488490

489491
class AptRepo:

0 commit comments

Comments
 (0)