X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fpost-install;h=22624cb74c688d1e304f5fd578fb9e8811bcf13b;hb=fc7d8c678ca78bef7c6e7eaeeb579269b7c501be;hp=a8e57389ce11a2c348b2b1001450212d80e01f2b;hpb=2ad910e22979500192ea43d5599ad003440744a4;p=hvlinux.git diff --git a/stage1/post-install b/stage1/post-install index a8e5738..22624cb 100755 --- a/stage1/post-install +++ b/stage1/post-install @@ -1,51 +1,10 @@ #!/bin/bash -# Reading system configuration informations, functions and package versions. -source ../config/sysinfos -source ../functions -source ../config/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 $?