Commit ea2a2acd authored by fsmithred's avatar fsmithred

make some devices

parent 2588b606
refractainstaller-gui (9.5.4) unstable; urgency=low
* fstab fixes for swap and /boot/efi
* Make some static entries in /dev
* Let terminal die when finished.
-- fsmithred <fsmithred@gmail.com>
refractainstaller-gui (9.5.3) unstable; urgency=low
* Fix message for bios boot with grub-pc installed.
......
#!/usr/bin/env bash
version="Refracta UEFI/BIOS Installer (Yad) 9.5.3 (20190317)"
version="Refracta UEFI/BIOS Installer (Yad) 9.5.3+ (20191116)"
TEXTDOMAIN=refractainstaller-gui
TEXTDOMAINDIR=/usr/share/locale/
......@@ -1314,6 +1314,28 @@ if [[ -n $boot_dev ]] ; then
tee >(yad --progress --pulsate --width=350 --auto-close --title=$"Copying files to boot partition.")
fi
#*************************************************************
# make some basic entries in /dev so the system can boot properly before udev starts
mknod -m 622 /target/dev/console c 5 1
mknod -m 666 /target/dev/null c 1 3
mknod -m 666 /target/dev/zero c 1 5
mknod -m 666 /target/dev/ptmx c 5 2
mknod -m 666 /target/dev/tty c 5 0
mknod -m 444 /target/dev/random c 1 8
mknod -m 444 /target/dev/urandom c 1 9
chown -v root:tty /target/dev/{console,ptmx,tty}
ln -sv /proc/self/fd /target/dev/fd
ln -sv /proc/self/fd/0 /target/dev/stdin
ln -sv /proc/self/fd/1 /target/dev/stdout
ln -sv /proc/self/fd/2 /target/dev/stderr
ln -sv /proc/kcore /target/dev/core
ln -sv /run/shm /target/dev/shm
mkdir -v /target/dev/pts
#*************************************************************
# create swapfile
if ! [[ $use_existing_swap = "yes" ]] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment