Fix initramfs scripts on Debian

1. /etc/udev/rules.d needs to be created
2. udev needs to be reloaded explicitly

Fixes QubesOS/qubes-issues#3178
This commit is contained in:
Marek Marczykowski-Górecki 2017-10-16 23:41:21 +02:00
parent 766f83de8e
commit b227d01a8a
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -100,7 +100,10 @@ EOF
fi fi
while ! [ -e /dev/xvdc1 ]; do sleep 0.1; done while ! [ -e /dev/xvdc1 ]; do sleep 0.1; done
mkswap /dev/xvdc1 mkswap /dev/xvdc1
printf 'KERNEL=="%s", SYMLINK+="mapper/dmroot"' "$ROOT_DEV" >> \ mkdir -p /etc/udev/rules.d
printf 'KERNEL=="%s", SYMLINK+="mapper/dmroot"\n' "$ROOT_DEV" >> \
/etc/udev/rules.d/99-root.rules /etc/udev/rules.d/99-root.rules
udevadm control -R
udevadm trigger
log_end log_end
fi fi