mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
add /etc/fstab and /etc/mtab to initrd image
This commit is contained in:
parent
85f0586615
commit
4c982856a3
4
initrd/etc/fstab
Normal file
4
initrd/etc/fstab
Normal 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
1
initrd/etc/mtab
Symbolic link
@ -0,0 +1 @@
|
||||
../proc/self/mounts
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user