--- elwix/build_romfs.sh 2013/07/29 08:52:16 1.6.2.2 +++ elwix/build_romfs.sh 2013/07/31 13:17:53 1.6.2.7 @@ -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.7 2013/07/31 13:17:53 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; + install -d tmp; install -d usr; install -d usr/bin; install -d usr/lib; @@ -129,6 +132,8 @@ install_romfs() 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 \; find ${WORLD}/lib/geom -type f -name \*.so -exec install {} $LIBS/geom \; @@ -200,7 +205,7 @@ build_romfs install_romfs -install_romfs2 -build_image2 +#install_romfs2 +#build_image2 echo "+++ Complete build ELWIX RomFS"