mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-14 00:59:43 +00:00
16 lines
285 B
Bash
16 lines
285 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
mkdir -pv $LFS/{dev,proc,sys,run}
|
||
|
|
||
|
mount -v --bind /dev $LFS/dev
|
||
|
|
||
|
mount -v --bind /dev/pts $LFS/dev/pts
|
||
|
mount -vt proc proc $LFS/proc
|
||
|
mount -vt sysfs sysfs $LFS/sys
|
||
|
mount -vt tmpfs tmpfs $LFS/run
|
||
|
|
||
|
if [ -h $LFS/dev/shm ]; then
|
||
|
mkdir -pv $LFS/$(readlink $LFS/dev/shm)
|
||
|
fi
|
||
|
|