Commit 37f5fbca authored by Anton Midyukov's avatar Anton Midyukov

stage2: copy initrd instead full*.cz, if that is not available

In the future, it is planned building iso without propagator.
parent 3259b2fa
...@@ -19,11 +19,18 @@ fi ...@@ -19,11 +19,18 @@ fi
kimage="$(find /boot -type f -name "$kname-*")" kimage="$(find /boot -type f -name "$kname-*")"
propagator="$(find /boot -type f -name 'full-*.cz')" propagator="$(find /boot -type f -name 'full-*.cz')"
[ -n "$propagator" ] ||
initrd="$(find /boot -type f -name 'initrd-*.img')"
cp $verbose -af $kimage boot/ cp $verbose -af $kimage boot/
mv boot/$kname-$kverdef boot/$kname mv boot/$kname-$kverdef boot/$kname
cp $verbose -af $propagator boot/ if [ -n "$propagator" ]; then
mv boot/full-$kverdef.cz boot/full.cz cp $verbose -af $propagator boot/
mv boot/full-$kverdef.cz boot/full.cz
else
cp $verbose -af $initrd boot/
mv boot/initrd-$kverdef.img boot/initrd.img
fi
# config is generated in mkimage # config is generated in mkimage
case "$GLOBAL_EFI_BOOTLOADER" in case "$GLOBAL_EFI_BOOTLOADER" in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment