Skip to content
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

the-modeenv: mount piboot from seed if present #85

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion factory/usr/lib/the-modeenv
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ if grep -q snapd_recovery_mode=run /proc/cmdline; then
if [ -f /run/mnt/ubuntu-boot/EFI/ubuntu/grub.cfg ]; then
echo '/run/mnt/ubuntu-boot/EFI/ubuntu /boot/grub none bind 0 0' >> /run/image.fstab
# ensure ESP efi dir is available for fwupdate (LP: 1892392)
echo '/run/mnt/ubuntu-seed/ /boot/efi none bind 0 0' >> /run/image.fstab
echo '/run/mnt/ubuntu-seed/ /boot/efi none bind 0 0' >> /run/image.fstab
elif [ -f /run/mnt/ubuntu-boot/uboot/ubuntu/boot.sel ]; then
echo '/run/mnt/ubuntu-boot/uboot/ubuntu /boot/uboot none bind 0 0' >> /run/image.fstab
elif [ -f /run/mnt/ubuntu-seed/piboot/ubuntu/piboot.conf ]; then
echo '/run/mnt/ubuntu-seed/piboot/ubuntu /boot/piboot none bind 0 0' >> /run/image.fstab
fi
fi
mount -o bind /run/image.fstab /sysroot/etc/fstab
Expand Down