--- elwix/config/rc.subr 2013/07/31 16:15:53 1.6.2.4 +++ elwix/config/rc.subr 2013/07/31 16:21:40 1.6.2.5 @@ -4,7 +4,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: rc.subr,v 1.6.2.4 2013/07/31 16:15:53 misho Exp $ +# $Id: rc.subr,v 1.6.2.5 2013/07/31 16:21:40 misho Exp $ # ### Dont edit this file !!! @@ -178,6 +178,28 @@ MakeFS_backup() cd altroot tar -czf backup/.var.tgz var +} + +# $1 = fs +MakeFS_boot() +{ + InstallDir ${WORLD}/boot $1/boot + + install -m 644 ${CFGDIR}/boot/boot.config $1; + + 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 + echo; + echo "Can't find right loader.conf for TARGET_ARCH=${TARGET_ARCH} ... loader.conf not installed!"; + echo; + fi; } # $1 = ELWIX install list config