Skip to content

Commit

Permalink
dracut in chroot, so we can use the chroot's glibc
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Oct 9, 2023
1 parent 45eaa6f commit bb9e661
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,10 @@ impl IsoBuilder {
) => "Can't find initramfs in /boot."
);

cmd_lib::run_cmd!(dracut --xz -r $root -vfNa $DR_MODS -o $DR_OMIT --no-early-microcode $root/boot/initramfs-$kver.img $kver 2>&1)?;
crate::chroot_run_cmd!(
root,
unshare -R $root dracut --xz -vfNa $DR_MODS -o $DR_OMIT --no-early-microcode /boot/initramfs-$kver.img $kver 2>&1;
)?;
Ok(())
}

Expand Down

0 comments on commit bb9e661

Please sign in to comment.