init: create /dev/.udev/rules.d with correct permissions
parent
e0c1d4e79f
commit
c492fe12c0
|
|
@ -1,5 +1,4 @@
|
|||
if [ "${root%%:*}" = "live" ]; then
|
||||
[ -d /dev/.udev/rules.d ] || mkdir -m 0755 -p /dev/.udev/rules.d
|
||||
{
|
||||
printf 'KERNEL=="%s", SYMLINK+="live"\n' \
|
||||
${root#live:/dev/}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
if [ -n "$resume" ]; then
|
||||
[ -d /dev/.udev/rules.d ] || mkdir -m 0755 -p /dev/.udev/rules.d
|
||||
{
|
||||
printf "KERNEL==\"%s\", ACTION==\"add|change\", SYMLINK+=\"/dev/resume\"\n" \
|
||||
${resume#/dev/};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
if [ "${root%%:*}" = "block" ]; then
|
||||
[ -d /dev/.udev/rules.d ] || mkdir -m 0755 -p /dev/.udev/rules.d
|
||||
{
|
||||
printf 'KERNEL=="%s", SYMLINK+="root"\n' \
|
||||
${root#block:/dev/}
|
||||
|
|
|
|||
|
|
@ -105,6 +105,8 @@ mkdir /dev/shm
|
|||
mkdir /dev/pts
|
||||
mount -t devpts -o gid=5,mode=620 devpts /dev/pts >/dev/null 2>&1
|
||||
mount -t tmpfs tmpfs /dev/shm >/dev/null 2>&1
|
||||
mkdir -m 0755 /dev/.udev
|
||||
mkdir -m 0755 /dev/.udev/rules.d
|
||||
|
||||
UDEVVERSION=$(udevadm --version)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue