Frederic Crozat
c0ff6f8db9
- Fix creation of /dev/root link. OBS-URL: https://build.opensuse.org/request/show/142434 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=314
14 lines
411 B
Bash
14 lines
411 B
Bash
#!/bin/sh
|
|
|
|
eval $(@@PREFIX@@/udevadm info --export --export-prefix=ROOT_ --device-id-of-file=/)
|
|
|
|
[ "$ROOT_MAJOR" -gt 0 ] || return
|
|
mkdir -m 0755 -p /run/udev/rules.d >/dev/null 2>&1
|
|
ln -sf /run/udev /dev/.udev 2>/dev/null || :
|
|
|
|
echo "ACTION==\"add|change\", SUBSYSTEM==\"block\", \
|
|
ENV{MAJOR}==\"$ROOT_MAJOR\", ENV{MINOR}==\"$ROOT_MINOR\", \
|
|
SYMLINK+=\"root\"" > /run/udev/rules.d/10-root-symlink.rules
|
|
|
|
exit 0
|