el: 删除误添加的 UUID cmdline

This commit is contained in:
bin456789 2024-07-07 17:07:19 +08:00
parent 96d7b56f9f
commit b4859f8a9a
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -2313,7 +2313,6 @@ EOF
yum install grubby
fi
chroot /os grubby --update-kernel ALL --remove-args "resume rd.lvm.lv"
chroot /os grubby --update-kernel ALL --args UUID=$os_part_uuid
if [ "$releasever" -eq 7 ]; then
# el7 上面那条 grubby 命令不能设置 /etc/default/grub
sed -i 's/ rd.lvm.lv=[^ "]*//g' /os/etc/default/grub