Update
This commit is contained in:
parent
76a242919f
commit
cd8d762e42
|
@ -141,6 +141,8 @@ function gen_image() {
|
|||
|
||||
if [ -f "/etc/kernel/cmdline" ]; then
|
||||
cmdline=$(sed -e 's/^[[:space:]]//g' -e 's/[[:space:]]$//g' "/etc/kernel/cmdline")
|
||||
elif [ -f "/boot/refind_linux.conf" ]; then
|
||||
cmdline=$(cat "/boot/refind_linux.conf" | head -n 1 | sed -e 's|"Boot with standard options"||g' | awk '{$1=$1;print}' | sed -e 's/"//g')
|
||||
else
|
||||
cmdline=$(sed -e 's/^[[:space:]]//g' -e 's/[[:space:]]$//g' -e 's/initrd.*$//g' "/proc/cmdline")
|
||||
fi
|
||||
|
@ -153,11 +155,13 @@ function gen_image() {
|
|||
|
||||
echo "==> Building initrd image $kernel_name $initrd_image"
|
||||
#dracut --force --hostonly --kver "$kernel_version" --kernel-cmdline="$cmdline" "$BOOT_PATH/initramfs-$kernel_name.img"
|
||||
dracut --force --hostonly --no-hostonly-cmdline --kver "$kernel_version" "$BOOT_PATH/initramfs-$kernel_name.img"
|
||||
#dracut --force --hostonly --no-hostonly-cmdline --kver "$kernel_version" "$BOOT_PATH/initramfs-$kernel_name.img"
|
||||
dracut --force --hostonly --no-hostonly-i18n --early-microcode --kernel-cmdline="$cmdline" --kver "$kernel_version" "$BOOT_PATH/initramfs-$kernel_name.img"
|
||||
|
||||
echo "==> Building initrd image $kernel_name $initrd_image_fallback"
|
||||
#dracut --force --no-hostonly --kver "$kernel_version" --kernel-cmdline="$cmdline" "$BOOT_PATH/initramfs-$kernel_name-fallback.img"
|
||||
dracut --force --kver "$kernel_version" "$BOOT_PATH/initramfs-$kernel_name-fallback.img"
|
||||
#dracut --force --kver "$kernel_version" "$BOOT_PATH/initramfs-$kernel_name-fallback.img"
|
||||
dracut --force --no-hostonly --no-hostonly-i18n --early-microcode --kernel-cmdline="$cmdline" --kver "$kernel_version" "$BOOT_PATH/initramfs-$kernel_name-fallback.img"
|
||||
|
||||
cp -vrf $vmlinuz $kernel_image
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue