--- elwix/build_romfs.sh 2013/07/29 08:52:16 1.6.2.2 +++ elwix/build_romfs.sh 2013/07/29 15:06:59 1.6.2.6 @@ -5,7 +5,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: build_romfs.sh,v 1.6.2.2 2013/07/29 08:52:16 misho Exp $ +# $Id: build_romfs.sh,v 1.6.2.6 2013/07/29 15:06:59 misho Exp $ # [ -r ./config/rc.elwix ] && . ./config/rc.elwix @@ -56,14 +56,17 @@ build_romfs() install -d boot/zfs; install -d dev; install -d elwix; + install -d elwix/altroot; + install -d elwix/altroot/var; + install -d elwix/cf; install -d elwix/etc; + install -d -o 883 -g 883 elwix/etc/mqtt; install -d elwix/exports; install -d elwix/home; install -d -m 0750 elwix/root; install -d -m 0750 elwix/root/.ssh; install -d elwix/system; install -d elwix/tftpboot; - install -d elwix/var; ln -fs /elwix/etc etc; ln -fs /elwix/exports exports; ln -fs /elwix/home home; @@ -73,7 +76,7 @@ build_romfs() install -d mnt; install -d -m 0555 proc; install -d sbin; - install -d -m 1777 tmp; + ln -fs /var/tmp tmp; install -d usr; install -d usr/bin; install -d usr/lib; @@ -128,6 +131,8 @@ install_romfs() install -v ${CFGDIR}/root.skel/logout $SKEL/dot.logout; install -v ${CFGDIR}/root.skel/profile $SKEL/dot.profile; install -v ${CFGDIR}/root.skel/vimrc $SKEL/dot.vimrc; + + find ${WORLD}/libexec -type f -name ld-elf.so\* -exec install {} $LIBEXEC \; find ${WORLD}/lib -type f -name \*.so.\* -exec install {} $LIBS \; find ${WORLD}/lib -type f -name libalias_\*.so -exec install {} $LIBS \;