version 1.10.2.2, 2016/12/15 14:32:50
|
version 1.11.2.2, 2017/06/16 13:41:05
|
Line 43 build_fsdir()
|
Line 43 build_fsdir()
|
mkdir -p $1 |
mkdir -p $1 |
|
|
cd $1 |
cd $1 |
|
|
# altroot |
|
install -d altroot; |
|
# altroot/var |
|
install -d altroot/var; |
|
install -d altroot/var/account; |
|
install -d altroot/var/at; |
|
install -d altroot/var/at/jobs; |
|
install -d altroot/var/at/spool; |
|
install -d -g 63 -m 0770 altroot/var/authpf; |
|
install -d -m 0750 altroot/var/cron; |
|
install -d -m 0700 altroot/var/cron/tabs; |
|
install -d altroot/var/db; |
|
install -d -m 0555 altroot/var/empty; |
|
install -d altroot/var/log; |
|
install -d -o 101 -g 101 altroot/var/log/quagga; |
|
install -d -o 883 -g 883 altroot/var/mqtt; |
|
install -d altroot/var/named; |
|
install -d altroot/var/run; |
|
install -d altroot/var/sys; |
|
install -d -o 53 -g 53 altroot/var/run/named; |
|
install -d -o 101 -g 101 altroot/var/run/quagga; |
|
install -d altroot/var/spool; |
|
install -d -o 66 -g 68 -m 0775 altroot/var/spool/lock; |
|
install -d -g 1 altroot/var/spool/lpd; |
|
install -d -g 1 altroot/var/spool/output; |
|
install -d -g 1 altroot/var/spool/output/lpd; |
|
# boot |
# boot |
install -d boot; |
install -d boot; |
# cf |
# cf |
Line 89 build_fsdir()
|
Line 62 build_fsdir()
|
install -d exports; |
install -d exports; |
# home |
# home |
install -d home; |
install -d home; |
|
# local |
|
install -d local; |
# root |
# root |
install -d -m 0750 root; |
install -d -m 0750 root; |
# pkg |
# pkg |
install -d pkg; |
install -d pkg; |
install -d pkg/db; |
|
install -d pkg/lib; |
|
# tftpboot |
# tftpboot |
install -d tftpboot; |
install -d tftpboot; |
|
|
Line 108 create_etc_fstab()
|
Line 81 create_etc_fstab()
|
# Automatic generated fstab for ELWIX $2 at ${BUILD_DATE} |
# Automatic generated fstab for ELWIX $2 at ${BUILD_DATE} |
# |
# |
/dev/ufs/elwix /elwix ufs ro 0 1 |
/dev/ufs/elwix /elwix ufs ro 0 1 |
md3 /tmp mfs rw,-s8m,-oasync,-S,-n 0 0 |
|
md4 /var mfs rw,-s16m,-S,-n 0 0 |
|
_EOF |
_EOF |
} |
} |
|
|
|
update_etc_cfexec() |
|
{ |
|
echo "mount = \"/elwix\"" >> $1/etc/cfexec.conf |
|
} |
|
|
install_fsdir() |
install_fsdir() |
{ |
{ |
echo "+++ Install ELWIX RootFS $1 in bundle OS install file ..." |
echo "+++ Install ELWIX RootFS $1 in bundle OS install file ..." |
Line 127 install_fsdir()
|
Line 103 install_fsdir()
|
pax -r -z -pe -f ${REL}/${ROMFS_IMG} |
pax -r -z -pe -f ${REL}/${ROMFS_IMG} |
cd - |
cd - |
|
|
install -d $1/usr/local | install -d $1/usr/pkg |
cd $1/usr/local | cd $1/usr/pkg |
pax -r -z -pe -f ${REL}/${ROMFS_IMG2} |
pax -r -z -pe -f ${REL}/${ROMFS_IMG2} |
cd - |
cd - |
|
|
Line 186 MakeFS_etc ${FS_EXT} ${FS_EXT_ETC} ext || exit 1
|
Line 162 MakeFS_etc ${FS_EXT} ${FS_EXT_ETC} ext || exit 1
|
|
|
create_etc_fstab ${FS} || exit 1 |
create_etc_fstab ${FS} || exit 1 |
create_etc_fstab ${FS_EXT} ext || exit 1 |
create_etc_fstab ${FS_EXT} ext || exit 1 |
|
|
|
update_etc_cfexec ${FS} || exit 1 |
|
update_etc_cfexec ${FS_EXT} ext || exit 1 |
|
|
MakeFS_backup ${FS} || exit 1 |
MakeFS_backup ${FS} || exit 1 |
MakeFS_backup ${FS_EXT} || exit 1 |
MakeFS_backup ${FS_EXT} || exit 1 |