create_disk.sh: work around bootupd mount leak
bootupd mounts the EFI partition but does not unmount it because it
assumes that it runs within its own mount namespace. AFAIK we haven't
had issues related to this, but I noticed it while debugging something
else.
Related:
@@ -435,7 +435,8 @@ bootloader_backend=none
install_uefi() {
# https://github.com/coreos/fedora-coreos-tracker/issues/510
# See also https://github.com/ostreedev/ostree/pull/1873#issuecomment-524439883
- /usr/bin/bootupctl backend install --src-root="${deploy_root}" "${rootfs}"
+ # Unshare mount ns to work around https://github.com/coreos/bootupd/issues/367
+ unshare -m /usr/bin/bootupctl backend install --src-root="${deploy_root}" "${rootfs}"
# We have a "static" grub config file that basically configures grub to look
# in the RAID called "md-boot", if it exists, or the partition labeled "boot".
local target_efi="$rootfs/boot/efi"
