aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-09-06 07:01:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-09-06 07:01:59 +0200
commit14f1af73722cab98d02096221b482c27a0e14355 (patch)
tree0e261b3d44d520584564c20be7255ae5cc4c14cd /init
parent88d02d623b6f1e57839e7add0dc67db101703d28 (diff)
Upgrade to latest Debian testing
New (old) versions of key packages: systemd/udev 251.3-1 (249.5-2) qemu-system-x86 7.0+dfsg-7+b1 (6.1+dfsg-8) linux-image-amd64 5.18.16 (5.14.9-2) g++ 12.2.0-1 (11.2.0-2) initramfs-tools 0.142 (0.140) debootstrap 1.0.127 (1.0.125) New (old) sizes: buildos-image 6,631,136 (6,316,352) buildos-initrd 350,467,663 (332,280,629)
Diffstat (limited to 'init')
-rwxr-xr-xinit9
1 files changed, 8 insertions, 1 deletions
diff --git a/init b/init
index eb0c939..429c87d 100755
--- a/init
+++ b/init
@@ -41,7 +41,14 @@ mount -t proc -o nodev,noexec,nosuid proc /proc
info "init starting up..."
mount -t devtmpfs -o nosuid,mode=0755 udev /dev
+
+# Prepare the /dev directory.
+#
ln -s /proc/self/fd /dev/fd
+ln -s /proc/self/fd/0 /dev/stdin
+ln -s /proc/self/fd/1 /dev/stdout
+ln -s /proc/self/fd/2 /dev/stderr
+
mkdir -p /dev/pts
mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts || true
@@ -77,7 +84,7 @@ sensors-detect --auto
# Initialize KVM.
#
-#if ! (modprobe kvm_intel || modprobe kvm_amd); then
+#if ! (/sbin/modprobe kvm_intel || /sbin/modprobe kvm_amd); then
# error "no virtualization support available (is it disabled in BIOS?)"
#fi