X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fpost-install;h=22624cb74c688d1e304f5fd578fb9e8811bcf13b;hb=fc7d8c678ca78bef7c6e7eaeeb579269b7c501be;hp=5f4755b45609779f392329f7f0bf875c2cff7b04;hpb=f3c8db3027d5dc530e1f30c88e0235975211582e;p=hvlinux.git diff --git a/stage1/post-install b/stage1/post-install index 5f4755b..22624cb 100755 --- a/stage1/post-install +++ b/stage1/post-install @@ -2,47 +2,9 @@ source ../functions/main -# 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 - # Change the ownership for ${LFS} and its subdirectories chown -Rv root:root ${LFS} +write_completed_stage + exit $?