version 1.1.2.6, 2014/01/22 09:35:23
|
version 1.2.2.1, 2014/09/17 22:05:50
|
Line 53 build_ubfs()
|
Line 53 build_ubfs()
|
install -d elwix/altroot; |
install -d elwix/altroot; |
install -d elwix/altroot/var; |
install -d elwix/altroot/var; |
install -d elwix/cf; |
install -d elwix/cf; |
|
case ${TARGET} in |
|
i386) |
|
ln -fs /dev/ada0g elwix/cf/map.cfg |
|
;; |
|
mips) |
|
ln -fs /dev/map/cfg elwix/cf/map.cfg |
|
;; |
|
esac |
install -d elwix/etc; |
install -d elwix/etc; |
install -d -o 883 -g 883 elwix/etc/mqtt; |
install -d -o 883 -g 883 elwix/etc/mqtt; |
install -d elwix/exports; |
install -d elwix/exports; |
Line 77 build_ubfs()
|
Line 85 build_ubfs()
|
install -d usr/lib/geom; |
install -d usr/lib/geom; |
install -d usr/libdata; |
install -d usr/libdata; |
install -d usr/libexec; |
install -d usr/libexec; |
|
install -d usr/libexec/casper; |
ln -fs /usr/libexec libexec; |
ln -fs /usr/libexec libexec; |
install -d usr/local; |
install -d usr/local; |
install -d usr/local/bin; |
install -d usr/local/bin; |
Line 127 install_ubfs()
|
Line 136 install_ubfs()
|
|
|
InstallList ${ELWIX_UBFS} ${WORLD} ${UBFS} |
InstallList ${ELWIX_UBFS} ${WORLD} ${UBFS} |
InstallLibs ${WORLD} ${UBFS} |
InstallLibs ${WORLD} ${UBFS} |
|
InstallDir ${WORLD}/libexec/casper $LIBEXEC/casper |
|
|
chown -R root:wheel $SBIN $BIN $USBIN $UBIN $LIBDATA $LIBEXEC $LIBS |
chown -R root:wheel $SBIN $BIN $USBIN $UBIN $LIBDATA $LIBEXEC $LIBS |
} |
} |
Line 148 create_etc_fstab()
|
Line 158 create_etc_fstab()
|
cat >$1/etc/fstab <<_EOF |
cat >$1/etc/fstab <<_EOF |
# Automatic generated fstab for ELWIX $2 at ${BUILD_DATE} |
# Automatic generated fstab for ELWIX $2 at ${BUILD_DATE} |
# |
# |
/dev/map/rootfs.uncompress / ufs ro 0 0 | /dev/map/rootfs.uncompress / ufs ro 0 0 |
/dev/map/NVRAM.uncompress /etc ufs ro 0 1 | md0 /tmp mfs rw,-s1m,-oasync,-S 0 0 |
md0 /tmp mfs rw,-s8m,-oasync,-S 0 0 | md1 /var mfs rw,-s2m,-S 0 0 |
md1 /var mfs rw,-s16m,-S 0 0 | /var/db /elwix/etc unionfs rw,noauto,-onoatime 0 0 |
_EOF |
_EOF |
} |
} |
|
|
install_fs() |
install_fs() |
{ |
{ |
echo "+++ Install ELWIX u-boot $1 in bundle OS install file ..." |
|
OSZ="" |
|
|
|
case "$2" in |
|
*) |
|
OSZ=${REL}/${UBOOT_OS} |
|
;; |
|
esac |
|
|
|
cd $1 |
cd $1 |
tar -czvf $OSZ . | echo "+++ Install ELWIX u-boot $1 in bundle OS install file ..." |
| tar -czvf ${REL}/${UBOOT_OS} . |
| cd - |
} |
} |
|
|
### main() |
### main() |
Line 180 install_ubfs
|
Line 183 install_ubfs
|
prepare_fs ${UBOOT_FS} |
prepare_fs ${UBOOT_FS} |
MakeFS_home ${UBOOT_FS}/elwix |
MakeFS_home ${UBOOT_FS}/elwix |
MakeFS_var ${UBOOT_FS}/elwix ${UBOOT_ETC} |
MakeFS_var ${UBOOT_FS}/elwix ${UBOOT_ETC} |
#MakeFS_etc ${UBOOT_FS}/elwix ${UBOOT_ETC} uboot | MakeFS_etc ${UBOOT_FS}/elwix ${UBOOT_ETC} uboot |
#create_etc_fstab ${UBOOT_FS}/elwix uboot | create_etc_fstab ${UBOOT_FS}/elwix uboot |
#MakeFS_backup ${UBOOT_FS}/elwix | install_fs ${UBOOT_FS} |
#install_fs ${UBOOT_FS} | |
|
|
echo "+++ Complete build ELWIX u-boot" |
echo "+++ Complete build ELWIX u-boot" |