stage2: copy initrd instead full*.cz, if that is not available
In the future, it is planned building iso without propagator.
This commit is contained in:
parent
3259b2faa8
commit
37f5fbca95
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user