summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-08-25 17:04:33 +0200
committermaximilian attems <maks@debian.org>2006-08-25 17:04:33 +0200
commit45989c9f37db0ef23e984ea559f2da784a028366 (patch)
tree7412695c5971e3bf874ee972e06032edb038de39 /init
parentfabe918dee7da26d177d67d4aa8fe3fd6e83e513 (diff)
downloadinitramfs-tools-45989c9f37db0ef23e984ea559f2da784a028366.tar.gz
initramfs-tools-45989c9f37db0ef23e984ea559f2da784a028366.zip
- fix bashism
- rename mdadm.conf in mdrun.conf - retry nfsmount - harden init - fix lvm boot script prereqs
Diffstat (limited to 'init')
-rwxr-xr-xinit6
1 files changed, 4 insertions, 2 deletions
diff --git a/init b/init
index 386ec37..a83dc39 100755
--- a/init
+++ b/init
@@ -2,6 +2,10 @@
echo "Loading, please wait..."
+[ -d /dev ] || mkdir -m 0755 /dev
+[ -d /root ] || mkdir --mode=0700 /root
+[ -e /dev/console ] || mknod /dev/console c 5 1
+[ -e /dev/null ] || mknod /dev/null c 1 3
mkdir /sys
mkdir /proc
mkdir /tmp
@@ -18,8 +22,6 @@ fi
mount -t tmpfs -o size=$tmpfs_size,mode=0755 udev /dev
> /dev/.initramfs-tools
mkdir /dev/.initramfs
-mknod /dev/console c 5 1
-mknod /dev/null c 1 3
# Export the dpkg architecture
export DPKG_ARCH=