Add dia
[hvlinux.git] / stage1 / post-install
index 72addc2..22624cb 100755 (executable)
@@ -1,51 +1,10 @@
 #!/bin/bash
 
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# We need /dev/null and /dev/console before udev is started.
-mkdir -pv ${LFS}/dev
-
-if [ ! -c ${LFS}/dev/console ]; then
-    mknod -m 0600 ${LFS}/dev/console c 5 1
-fi
-
-if [ ! -c ${LFS}/dev/null ]; then
-    mknod -m 0666 ${LFS}/dev/null c 1 3
-fi
-
-# Static UDEV devices
-if [ ! -c ${LFS}/lib/udev/devices/null ]; then
-    mknod -m0666 ${LFS}/lib/udev/devices/null c 1 3
-fi
-
-if [ ! -c ${LFS}/lib/udev/devices/kmsg ]; then
-    mknod -m0666 ${LFS}/lib/udev/devices/kmsg c 1 11
-fi
-
-if [ ! -h ${LFS}/lib/udev/devices/fd ]; then
-    ln -sfv /proc/self/fd ${LFS}/lib/udev/devices/fd
-fi
-
-if [ ! -h ${LFS}/lib/udev/devices/stdin ]; then
-    ln -sfv /proc/self/fd/0 ${LFS}/lib/udev/devices/stdin
-fi
-
-if [ ! -h ${LFS}/lib/udev/devices/stdout ]; then
-    ln -sfv /proc/self/fd/1 ${LFS}/lib/udev/devices/stdout
-fi
-
-if [ ! -h ${LFS}/lib/udev/devices/stderr ]; then
-    ln -sfv /proc/self/fd/2 ${LFS}/lib/udev/devices/stderr
-fi
-
-if [ ! -h ${LFS}/lib/udev/devices/core ]; then
-    ln -sfv /proc/kcore ${LFS}/lib/udev/devices/core
-fi
+source ../functions/main
 
 # Change the ownership for ${LFS} and its subdirectories
 chown -Rv root:root ${LFS}
 
+write_completed_stage
+
 exit $?