Skip to content

Commit

Permalink
Merge pull request #65 from containers/initoverlayfs-install-fixes
Browse files Browse the repository at this point in the history
initoverlayfs-install fixes
  • Loading branch information
dougsland authored Feb 10, 2024
2 parents c3cdf95 + 7b052eb commit b373b65
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/initoverlayfs-install
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,11 @@ detect_path_initramfs

if ! [ -e "$INITOVERLAYFS_CONF" ] || ! grep -q '[^[:space:]]' "$INITOVERLAYFS_CONF"; then
boot_partition=$(< /etc/fstab grep "${INITRAMFS_DIR}.*ext4" | awk '{print $1}')
printf "%s\n%s\n%s\n%s\n%s\n%s\n" \

printf "%s\n%s\n%s\n%s\n" \
"bootfs $boot_partition" \
"bootfstype ext4" \
"initoverlayfs_builder dracut -N -f -v -M --reproducible -o \"initoverlayfs\"" \
"initoverlayfs_builder dracut -N -f -v -M --reproducible -o \"initoverlayfs fcoe\"" \
"initrd_builder dracut -N -f -v -M --reproducible -m \"kernel-modules udev-rules initoverlayfs systemd base\" -o \"bash systemd-initrd i18n kernel-modules-extra rootfs-block dracut-systemd usrmount fs-lib microcode_ctl-fw_dir_override shutdown nss-softokn\"" > $INITOVERLAYFS_CONF

erofs_compression_supported="true"
Expand All @@ -184,11 +185,11 @@ fi

erofs_compression=$(sed -ne "s/^erofs_compression\s//pg" "$INITOVERLAYFS_CONF")
initoverlayfs_builder=$(sed -ne "s/^initoverlayfs_builder\s//pg" "$INITOVERLAYFS_CONF")
/bin/bash -c "$initoverlayfs_builder"
/bin/bash -c "$initoverlayfs_builder --kver $kver"

detect_initramfs
extract_initrd_into_initoverlayfs

initrd_builder=$(sed -ne "s/^initrd_builder\s//pg" "$INITOVERLAYFS_CONF")
/bin/bash -c "$initrd_builder"
/bin/bash -c "$initrd_builder --kver $kver"

0 comments on commit b373b65

Please sign in to comment.