dracut-initramfs-restore: make mount error nonfatal
master
Harald Hoyer 2015-09-02 12:54:43 +02:00
commit 5816375273
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ SKIP="$dracutbasedir/skipcpio"

[[ -f /etc/machine-id ]] && read MACHINE_ID < /etc/machine-id

mount -o ro /boot &>/dev/null
mount -o ro /boot &>/dev/null || true

if [[ $MACHINE_ID ]] && [[ -d /boot/${MACHINE_ID} || -L /boot/${MACHINE_ID} ]] ; then
IMG="/boot/${MACHINE_ID}/${KERNEL_VERSION}/initrd"