--- elwix/build_fs.sh 2017/06/16 13:41:05 1.11.2.2 +++ elwix/build_fs.sh 2017/06/20 08:49:03 1.11.2.5 @@ -5,7 +5,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: build_fs.sh,v 1.11.2.2 2017/06/16 13:41:05 misho Exp $ +# $Id: build_fs.sh,v 1.11.2.5 2017/06/20 08:49:03 misho Exp $ # [ -r ./config/rc.elwix ] && . ./config/rc.elwix @@ -39,6 +39,9 @@ clean_fsdir() build_fsdir() { + # + # Structure of ELWIX CF Drive mount on /elwix + # echo "+++ Build ELWIX FS directory ... $1" mkdir -p $1 @@ -48,7 +51,7 @@ build_fsdir() # cf install -d cf; case ${TARGET} in - i386) + i386|amd64) ln -fs /dev/ada0g cf/map.cfg ;; mips) @@ -57,7 +60,6 @@ build_fsdir() esac # etc install -d etc; - install -d -o 883 -g 883 etc/mqtt; # exports install -d exports; # home @@ -103,8 +105,8 @@ install_fsdir() pax -r -z -pe -f ${REL}/${ROMFS_IMG} cd - - install -d $1/usr/pkg - cd $1/usr/pkg + install -d $1/pkg + cd $1/pkg pax -r -z -pe -f ${REL}/${ROMFS_IMG2} cd - @@ -165,9 +167,6 @@ 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_EXT} || exit 1 MakeFS_boot ${FS} || exit 1 MakeFS_boot ${FS_EXT} || exit 1