mirror of
https://github.com/MichielDerhaeg/build-linux.git
synced 2025-09-19 03:52:04 +02:00
25 lines
567 B
Bash
25 lines
567 B
Bash
#!/bin/sh
|
|
|
|
# TODO options
|
|
/usr/bin/mount -t proc proc /proc
|
|
/usr/bin/mount -t sysfs sys /sys
|
|
/usr/bin/mount -t devtmpfs dev /dev
|
|
mkdir -p /dev/pts /dev/shm # TODO check if in filesystem
|
|
/usr/bin/mount -t devpts devpts /dev/pts
|
|
/usr/bin/mount -t tmpfs tmpfs /dev/shm
|
|
/usr/bin/mount -t tmpfs tmpfs /run
|
|
|
|
if [[ -f /etc/hostname ]]; then
|
|
cat /etc/hostname > /proc/sys/kernel/hostname
|
|
fi
|
|
|
|
/sbin/mdev -s
|
|
echo /sbin/mdev > /proc/sys/kernel/hotplug
|
|
|
|
/bin/ip link set up dev lo
|
|
|
|
/usr/bin/mount -a
|
|
/usr/bin/mount -o remount,rw /
|
|
|
|
loadkmap < /usr/share/keymaps/be-latin1.bmap
|