add /etc/fstab and /etc/mtab to initrd image

This commit is contained in:
Trammell Hudson 2017-04-10 12:59:24 -04:00
parent 85f0586615
commit 4c982856a3
Failed to extract signature
3 changed files with 6 additions and 3 deletions

4
initrd/etc/fstab Normal file
View File

@ -0,0 +1,4 @@
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=0,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0

1
initrd/etc/mtab Symbolic link
View File

@ -0,0 +1 @@
../proc/self/mounts

View File

@ -1,9 +1,7 @@
#!/bin/ash
# First thing it is vital to mount the /dev and other system directories
mkdir /proc /sys /dev /tmp /boot /media 2>&- 1>&-
mount -t devtmpfs none /dev
mount -t proc none /proc
mount -t sysfs none /sys
mount /dev /proc /sys
# Setup our path
export PATH=/sbin:/bin