summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-01-16 09:04:48 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-01-16 09:04:48 (EST)
commit6e4e840980f3da36b995b0470d18e2e7ecd0a456 (patch)
tree4c763eec04772873cda96e6b2259cfb601f5a821
parent39f74835a831c952c995158cb00e0146c49fd075 (diff)
installer/pcramfs: Make RAM FS twice
Fixes: Mapping RAM disk /boot/initrd.img Fatal: open /boot/initrd.img: No such file or directory
-rw-r--r--src/installer/pcramfs.sh4
-rw-r--r--src/profile/proteanos.sh1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/installer/pcramfs.sh b/src/installer/pcramfs.sh
index 4aae82a..18d9f0b 100644
--- a/src/installer/pcramfs.sh
+++ b/src/installer/pcramfs.sh
@@ -37,11 +37,15 @@ installer_pcramfs_main()
return 1
fi
+ # First pass: create an empty RAM FS for LILO to find and map.
+ (cd -- "${root}" && profile_make_initramfs "${arch}" "${plat}")
+
if ! install_system "${arch}" "${plat}" "${root}" "${foreign}"; then
block_umount "${root}"
return 1
fi
+ # Second pass: pack the system into the previously empty RAM FS.
(cd -- "${root}" && profile_make_initramfs "${arch}" "${plat}")
block_umount "${root}"
diff --git a/src/profile/proteanos.sh b/src/profile/proteanos.sh
index 4795e91..28d2bbd 100644
--- a/src/profile/proteanos.sh
+++ b/src/profile/proteanos.sh
@@ -426,6 +426,7 @@ prof_proteanos_make_initramfs()
else
init_created=false
fi
+ mkdir -p boot
find . -xdev -a \! -path './boot/*' -a \
\! -path './prokit/*' | \
${CPIO} -o -H newc | \