Diff for /elwix/build_fs.sh between versions 1.1.2.6 and 1.3.2.5

version 1.1.2.6, 2011/09/25 16:53:40 version 1.3.2.5, 2012/03/20 16:12:44
Line 84  build_fsdir() Line 84  build_fsdir()
         install -d home;          install -d home;
 # root  # root
         install -d -m 0700 root;          install -d -m 0700 root;
# local# pkg
        install -d local;        install -d pkg;
         install -d pkg/db;
 # tftpboot  # tftpboot
         install -d tftpboot;          install -d tftpboot;
   
Line 99  mkboot() Line 100  mkboot()
         InstallDir ${WORLD}/boot $1/boot          InstallDir ${WORLD}/boot $1/boot
   
         install -m 644 ${CFGDIR}/boot/boot.config $1;          install -m 644 ${CFGDIR}/boot/boot.config $1;
         install -m 644 ${CFGDIR}/boot/beastie.4th $1/boot;  
         install -m 644 ${CFGDIR}/boot/brand.4th $1/boot;  
         install -m 644 ${CFGDIR}/boot/menu.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          if [ -r ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf ]; then
                 install -m 644 ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf $1/boot/loader.conf;                  install -m 644 ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf $1/boot/loader.conf;
         else          else
Line 176  mketc() Line 180  mketc()
         chmod 0600 $1/etc/ssh/ssh_host_dsa_key;          chmod 0600 $1/etc/ssh/ssh_host_dsa_key;
         chmod 0600 $1/etc/ssh/ssh_host_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_rsa_key;
           chmod 0600 $1/etc/ssh/ssh_host_ecdsa_key;
   
         chmod 0440 $1/etc/sudoers;          chmod 0440 $1/etc/sudoers;
   
Line 190  mketc() Line 195  mketc()
         ln -sf /var/named/etc/namedb $1/etc/namedb;          ln -sf /var/named/etc/namedb $1/etc/namedb;
         ln -sf /var/run/resolv.conf $1/etc/resolv.conf;          ln -sf /var/run/resolv.conf $1/etc/resolv.conf;
   
           ln -sf /elwix/pkg/etc/mk.conf $1/etc/mk.conf;
   
         echo ${TARGET_ARCH} >$1/etc/platform;          echo ${TARGET_ARCH} >$1/etc/platform;
   
         create_etc_motd $1/etc/motd;          create_etc_motd $1/etc/motd;
         create_etc_fstab $1/etc/fstab;          create_etc_fstab $1/etc/fstab;
   
           echo "+++ ELWIX clean CVS tags ..."
           CleanCVS ${FS}
           CleanCVS ${FS}/etc
 }  }
   
 mkbackup()  mkbackup()
Line 228  install_fsdir() Line 239  install_fsdir()
   
         install -v ${REL}/${ROOTFS_KERN} ${FS}/boot/kernel          install -v ${REL}/${ROOTFS_KERN} ${FS}/boot/kernel
   
        install -v ${REL}/${ROMFS_IMG} ${FS}/elwix-firmware-${VERSION}_${TARGET_ARCH}        install -v ${REL}/${ROMFS_IMG} ${FS}/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH}
        ln -s /elwix/elwix-firmware-${VERSION}_${TARGET_ARCH} ${FS}/${ROMFS_IMG}        ln ${FS}/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} ${FS}/altroot/${ROMFS_IMG}
         ln -s /elwix/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} ${FS}/${ROMFS_IMG}
   
         cd $FS          cd $FS
         tar -czvf ${REL}/${OS} .          tar -czvf ${REL}/${OS} .
 }  }
   
 cleancvs()  
 {  
         echo "+++ ELWIX clean CVS tags ..."  
   
         find $1 -type d -name CVS -exec rm -rf {} \; >/dev/null 2>&1  
 }  
   
 ### main()  ### main()
 if [ ! -r ${REL}/${ROOTFS_KERN} -o ! -r ${REL}/${ROMFS_IMG} ]; then  if [ ! -r ${REL}/${ROOTFS_KERN} -o ! -r ${REL}/${ROMFS_IMG} ]; then
         echo          echo
Line 259  mkboot ${FS} Line 264  mkboot ${FS}
 mkhome ${FS}  mkhome ${FS}
 mkvar ${FS}  mkvar ${FS}
 mketc ${FS}  mketc ${FS}
 cleancvs ${FS}  
 mkbackup ${FS}  mkbackup ${FS}
   
 install_fsdir  install_fsdir

Removed from v.1.1.2.6  
changed lines
  Added in v.1.3.2.5


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>