mirror of
https://github.com/linuxboot/heads.git
synced 2025-06-10 19:41:38 +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
|
#!/bin/ash
|
||||||
# First thing it is vital to mount the /dev and other system directories
|
# First thing it is vital to mount the /dev and other system directories
|
||||||
mkdir /proc /sys /dev /tmp /boot /media 2>&- 1>&-
|
mkdir /proc /sys /dev /tmp /boot /media 2>&- 1>&-
|
||||||
mount -t devtmpfs none /dev
|
mount /dev /proc /sys
|
||||||
mount -t proc none /proc
|
|
||||||
mount -t sysfs none /sys
|
|
||||||
|
|
||||||
# Setup our path
|
# Setup our path
|
||||||
export PATH=/sbin:/bin
|
export PATH=/sbin:/bin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user