diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-01-25 18:30:11 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-01-25 18:30:11 +0000 |
commit | 53bae838e15b502d522332442e981f112c5787f5 (patch) | |
tree | 53036fcdc9c53de6f7299e1e90f4f46e44dda0a0 /rescue/tree/etc/rc.sysinit | |
parent | 2f3347542ae756b507ad943fbfda66fecf63a3e8 (diff) | |
download | drakx-53bae838e15b502d522332442e981f112c5787f5.tar drakx-53bae838e15b502d522332442e981f112c5787f5.tar.gz drakx-53bae838e15b502d522332442e981f112c5787f5.tar.bz2 drakx-53bae838e15b502d522332442e981f112c5787f5.tar.xz drakx-53bae838e15b502d522332442e981f112c5787f5.zip |
udev support
(will help next commits)
Diffstat (limited to 'rescue/tree/etc/rc.sysinit')
-rwxr-xr-x | rescue/tree/etc/rc.sysinit | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/rescue/tree/etc/rc.sysinit b/rescue/tree/etc/rc.sysinit index 39d7dec6b..e562cde63 100755 --- a/rescue/tree/etc/rc.sysinit +++ b/rescue/tree/etc/rc.sysinit @@ -10,6 +10,21 @@ echo -e "\t\t\tWelcome to \\033[1;36mMageia\\033[0;39m Linux" action "Remounting root filesystem in read-write mode" mount -n -o remount,rw / +echo "Starting udev" +mkdir /run +mount -t tmpfs -o mode=0755,nosuid,nodev tmpfs /run +mkdir -p /run/udev/rules.d +export UDEVRULESD=/run/udev/rules.d +mount -t devtmpfs -o mode=0755,nosuid devtmpfs /dev +mkdir /dev/pts +mkdir /dev/shm +mount /dev/pts +mount /dev/shm + +/lib/udev/udevd --daemon --resolve-names=never +udevadm trigger --type=subsystems --action=add +udevadm trigger --type=devices --action=add + ln -s /tmp/stage2/etc/* /etc 2>/dev/null # make passwd changable rm -f /etc/passwd @@ -22,9 +37,6 @@ mkdir -p /mnt /var/log /dev/pts >/etc/mtab mount -f / mount -f /proc -# mount /dev/pts and link /dev/ptmx so dropbear works -mount /dev/pts -ln -s /dev/pts/ptmx /dev/ptmx # Set the hostname. action "Setting hostname rescue" hostname rescue |