--- elwix/build_fs.sh 2011/07/25 00:19:39 1.1.2.4 +++ elwix/build_fs.sh 2011/10/23 21:45:46 1.2.2.3 @@ -5,7 +5,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: build_fs.sh,v 1.1.2.4 2011/07/25 00:19:39 misho Exp $ +# $Id: build_fs.sh,v 1.2.2.3 2011/10/23 21:45:46 misho Exp $ # [ -r ./config/rc.elwix ] && . ./config/rc.elwix @@ -99,8 +99,13 @@ mkboot() InstallDir ${WORLD}/boot $1/boot install -m 644 ${CFGDIR}/boot/boot.config $1; - install -m 644 ${CFGDIR}/boot/beastie.4th $1/boot; + install -m 444 ${CFGDIR}/boot/beastie.4th $1/boot; + install -m 444 ${CFGDIR}/boot/brand.4th $1/boot; + install -m 444 ${CFGDIR}/boot/menu.4th $1/boot; + + install -m 444 ${KERNDEVHINTS} $1/boot/device.hints; + if [ -r ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf ]; then install -m 644 ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf $1/boot/loader.conf; else @@ -162,6 +167,8 @@ _EOF mketc() { echo "+++ Build ELWIX FS etc directory ..." + find ${FS_ETC} -name .#\* -exec rm -f {} \; + InstallDir ${FS_ETC} $1/etc chown -R root:wheel $1/etc; @@ -174,6 +181,7 @@ mketc() chmod 0600 $1/etc/ssh/ssh_host_dsa_key; chmod 0600 $1/etc/ssh/ssh_host_key; chmod 0600 $1/etc/ssh/ssh_host_rsa_key; + chmod 0600 $1/etc/ssh/ssh_host_ecdsa_key; chmod 0440 $1/etc/sudoers;