eudev: moved logic to handle mounting /dev, /run to core/rc
This commit is contained in:
parent
cc07dcce91
commit
d1ff6504e8
@ -1,7 +1,7 @@
|
||||
untrusted comment: verify with /etc/ports/core.pub
|
||||
RWRJc1FUaeVeqo5pxulYOyQLNbrU7gWoA1C+w/PpO2vt+Uk/PL6+N1buTT0fJRuuUXUULqQlzx3nc5B9NzJ+0VoLSzDq5LXjrgo=
|
||||
SHA256 (Pkgfile) = 722165b04752e1b9f2accb12e3d2b689e154ceba1ef893ae4e60a78d5c40e247
|
||||
RWRJc1FUaeVequ6ogxOwcdCWzhQkfY2LxaDCILuWWlsihgJ6gZCLSldwrL3CtE2PNYKe6heow6ourTdfjeKDBqfTMMgVGaWRmgc=
|
||||
SHA256 (Pkgfile) = 255024e0e82f3f114d51b82c92aa48e65cf5a25ffe14e8ca4e54e4edd2664035
|
||||
SHA256 (.footprint) = e53692cb93720480d67d014cee3e32c485e1f08c9d2e94d2d87fb5e56f1c8253
|
||||
SHA256 (eudev-3.2.14.tar.gz) = 8da4319102f24abbf7fff5ce9c416af848df163b29590e666d334cc1927f006f
|
||||
SHA256 (81-crux.rules) = 087045a1dcce3af4445799dfd28482fa7243653a4d93439bbea64f2b241c1fad
|
||||
SHA256 (start_udev) = bf6d5dcffd0193a13dab90db623f4adf440782998797182715fc85281207905d
|
||||
SHA256 (start_udev) = 436f93fc60dca6a3ec3e0f130defe2ac74d6e17ba63796e9d000c5b5b70ae605
|
||||
|
@ -5,9 +5,10 @@
|
||||
|
||||
name=eudev
|
||||
version=3.2.14
|
||||
release=1
|
||||
release=2
|
||||
source=(https://github.com/eudev-project/eudev/releases/download/v$version/$name-$version.tar.gz
|
||||
81-crux.rules start_udev)
|
||||
81-crux.rules
|
||||
start_udev)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
@ -1,26 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
# - if /dev is not mounted - mount as a devtmpfs (CONFIG_DEVTMPFS=y)
|
||||
# - if /dev is mounted (e.g. due to handover from initramfs or
|
||||
# CONFIG_DEVTMPFS_MOUNT=y), remount with specific options
|
||||
# - some video drivers require exec access in /dev, thus it's set here
|
||||
# - for completness, we add few sanity limits (2k non-empty files, 16k inodes)
|
||||
|
||||
UDEVOPTS="exec,nosuid,noatime,mode=0755,nr_blocks=2048,nr_inodes=16384"
|
||||
if /bin/mountpoint -q /dev ; then
|
||||
/bin/mount -n -o remount,${UDEVOPTS} dev /dev
|
||||
else
|
||||
/bin/mount -n -t devtmpfs -o ${UDEVOPTS} dev /dev
|
||||
fi
|
||||
|
||||
# mount /run directory if not mounted
|
||||
if ! /bin/mountpoint -q /run ; then
|
||||
/bin/mount -n -t tmpfs -o mode=0755,nosuid,nodev,exec tmpfs /run
|
||||
fi
|
||||
|
||||
# copy devcies from /lib/udev/devices
|
||||
cp -ar /lib/udev/devices/* /dev
|
||||
|
||||
# launch udev daemon, make sure it's not running first
|
||||
test -z "$(/bin/pidof -s udevd)" && /sbin/udevd --daemon
|
||||
|
||||
@ -28,4 +7,3 @@ test -z "$(/bin/pidof -s udevd)" && /sbin/udevd --daemon
|
||||
/sbin/udevadm trigger --type=subsystems --action=add
|
||||
/sbin/udevadm trigger --type=devices --action=add
|
||||
/sbin/udevadm settle
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user