Diff for /elwix/build_rootfs.sh between versions 1.10.2.3 and 1.10.2.4

version 1.10.2.3, 2017/12/27 21:13:00 version 1.10.2.4, 2018/07/06 00:23:20
Line 76  srcdirs ${BSDSRC}/secure/usr.bin ${BSDSRC}/secure/usr. Line 76  srcdirs ${BSDSRC}/secure/usr.bin ${BSDSRC}/secure/usr.
   
 buildopts TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} ${X_TARGET_CPUTYPE} __MAKE_CONF=${MAKECONF}  buildopts TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} ${X_TARGET_CPUTYPE} __MAKE_CONF=${MAKECONF}
 buildopts -DNO_PAM -DNO_KERBEROS WITHOUT_PAM_SUPPORT=yes WITHOUT_KERBEROS_SUPPORT=yes WITHOUT_KERBEROS=yes  buildopts -DNO_PAM -DNO_KERBEROS WITHOUT_PAM_SUPPORT=yes WITHOUT_KERBEROS_SUPPORT=yes WITHOUT_KERBEROS=yes
buildopts -DMK_CASPER=no WITHOUT_CASPER=yesbuildopts -DMK_CASPER=no WITHOUT_CASPER=yes MK_TESTS=no UPDATE_DEPENDFILE=no _RECURSING_CRUNCH=1
 
 _EOF  _EOF
         cat $CFGDIR/$ROOTFS_CONF >>$ROOTFS_CONF          cat $CFGDIR/$ROOTFS_CONF >>$ROOTFS_CONF
         echo "+++ Prepared RootFS config ... $CFGDIR/$ROOTFS_CONF"          echo "+++ Prepared RootFS config ... $CFGDIR/$ROOTFS_CONF"
Line 88  _EOF Line 89  _EOF
         if [ $? -ne 0 ]; then          if [ $? -ne 0 ]; then
                 exit 1                  exit 1
         fi          fi
   #       cat >>$MKF << _EOF
   #
   #.for _tool in ${CRUNCH_BUILDTOOLS}
   #build-tools-${_tool}:
   #       ${_+_}cd ${.CURDIR}/../../${_tool}; \
   #           if [ "${MK_AUTO_OBJ}" = "no" ]; then \
   #               ${CRUNCHENV} MAKEOBJDIRPREFIX=${CRUNCHOBJS} ${MAKE} obj; \
   #           fi; \
   #           ${CRUNCHENV} MAKEOBJDIRPREFIX=${CRUNCHOBJS} ${MAKE} build-tools
   #
   #build-tools: build-tools-${_tool}
   #       /usr/bin ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}
   #
   #.endfor
   #_EOF
         cd -          cd -
 }  }
   
Line 122  build_rootdir() Line 138  build_rootdir()
         install -d libexec;          install -d libexec;
         install -d mnt;          install -d mnt;
         install -d -m 0555 proc;          install -d -m 0555 proc;
           install -d rescue;
         install -d sbin;          install -d sbin;
         install -d -m 1777 tmp;          install -d -m 1777 tmp;
         install -d usr;          install -d usr;
Line 150  install_rootfs() Line 167  install_rootfs()
         UBIN="${ROOTFS}/usr/bin"          UBIN="${ROOTFS}/usr/bin"
         LIBEXEC="${ROOTFS}/usr/libexec"          LIBEXEC="${ROOTFS}/usr/libexec"
         ETC="${ROOTFS}/etc"          ETC="${ROOTFS}/etc"
           RESCUE="${ROOTFS}/rescue"
   
         PRG="/sbin/elwix"          PRG="/sbin/elwix"
         LNPRG="${SBIN}/elwix"          LNPRG="${SBIN}/elwix"
Line 170  install_rootfs() Line 188  install_rootfs()
         ln -s $PRG $BIN/chio          ln -s $PRG $BIN/chio
         ln -s $PRG $BIN/chmod          ln -s $PRG $BIN/chmod
         ln -s $PRG $BIN/cp          ln -s $PRG $BIN/cp
           ln -s $PRG $RESCUE/cp
         ln -s $PRG $BIN/csh          ln -s $PRG $BIN/csh
         ln -s $PRG $BIN/-csh          ln -s $PRG $BIN/-csh
           ln -s $PRG $RESCUE/csh
         ln -s $PRG $BIN/tcsh          ln -s $PRG $BIN/tcsh
         ln -s $PRG $BIN/-tcsh          ln -s $PRG $BIN/-tcsh
         ln -s $PRG $BIN/date          ln -s $PRG $BIN/date
Line 193  install_rootfs() Line 213  install_rootfs()
         ln -s $PRG $BIN/pgrep          ln -s $PRG $BIN/pgrep
         ln -s $PRG $BIN/sh          ln -s $PRG $BIN/sh
         ln -s $PRG $BIN/-sh          ln -s $PRG $BIN/-sh
           ln -s $PRG $RESCUE/sh
         ln -s $PRG $BIN/ps          ln -s $PRG $BIN/ps
         ln -s $PRG $BIN/pwait          ln -s $PRG $BIN/pwait
         ln -s $PRG $BIN/pwd          ln -s $PRG $BIN/pwd
         ln -s $PRG $BIN/realpath          ln -s $PRG $BIN/realpath
         ln -s $PRG $BIN/rm          ln -s $PRG $BIN/rm
           ln -s $PRG $RESCUE/rm
         ln -s $PRG $BIN/unlink          ln -s $PRG $BIN/unlink
 #       ln -s $PRG $BIN/rmdir  #       ln -s $PRG $BIN/rmdir
         ln -s $PRG $BIN/sleep          ln -s $PRG $BIN/sleep
Line 224  install_rootfs() Line 246  install_rootfs()
         ln -s $PRG $BIN/cap_mkdb          ln -s $PRG $BIN/cap_mkdb
         ln -s $PRG $BIN/sed          ln -s $PRG $BIN/sed
         ln -s $PRG $BIN/vi          ln -s $PRG $BIN/vi
           ln -s $PRG $RESCUE/vi
         ln -s $PRG $BIN/du          ln -s $PRG $BIN/du
         ln -s $PRG $BIN/getopt          ln -s $PRG $BIN/getopt
         ln -s $PRG $BIN/logger          ln -s $PRG $BIN/logger
Line 267  install_rootfs() Line 290  install_rootfs()
         ln -s $PRG $SBIN/dumpon          ln -s $PRG $SBIN/dumpon
         ln -s $PRG $SBIN/fdisk          ln -s $PRG $SBIN/fdisk
         ln -s $PRG $SBIN/fsck          ln -s $PRG $SBIN/fsck
           ln -s $PRG $RESCUE/fsck
         ln -s $PRG $SBIN/fsck_ffs          ln -s $PRG $SBIN/fsck_ffs
         ln -s $PRG $SBIN/fsck_ufs          ln -s $PRG $SBIN/fsck_ufs
         ln -s $PRG $SBIN/fsck_4.2bsd          ln -s $PRG $SBIN/fsck_4.2bsd
Line 280  install_rootfs() Line 304  install_rootfs()
 #       ln -s $PRG $SBIN/hastctl  #       ln -s $PRG $SBIN/hastctl
 #       ln -s $PRG $SBIN/hastd  #       ln -s $PRG $SBIN/hastd
         ln -s $PRG $SBIN/ifconfig          ln -s $PRG $SBIN/ifconfig
           ln -s $PRG $RESCUE/ifconfig
         ln -s $PRG $SBIN/init          ln -s $PRG $SBIN/init
         ln -s $PRG $SBIN/ipfw          ln -s $PRG $SBIN/ipfw
         ln -s $PRG $SBIN/iscontrol          ln -s $PRG $SBIN/iscontrol
Line 293  install_rootfs() Line 318  install_rootfs()
         ln -s $PRG $SBIN/sha256          ln -s $PRG $SBIN/sha256
         ln -s $PRG $SBIN/rmd160          ln -s $PRG $SBIN/rmd160
         ln -s $PRG $SBIN/mdconfig          ln -s $PRG $SBIN/mdconfig
           ln -s $PRG $RESCUE/mdconfig
         ln -s $PRG $SBIN/mdmfs          ln -s $PRG $SBIN/mdmfs
         ln -s $PRG $SBIN/mount_mfs          ln -s $PRG $SBIN/mount_mfs
         ln -s $PRG $SBIN/mknod          ln -s $PRG $SBIN/mknod
 #       ln -s $PRG $SBIN/mksnap_ffs  #       ln -s $PRG $SBIN/mksnap_ffs
         ln -s $PRG $SBIN/mount          ln -s $PRG $SBIN/mount
           ln -s $PRG $RESCUE/mount
 #       ln -s $PRG $SBIN/mount_cd9660  #       ln -s $PRG $SBIN/mount_cd9660
         ln -s $PRG $SBIN/mount_msdosfs          ln -s $PRG $SBIN/mount_msdosfs
         ln -s $PRG $SBIN/mount_nfs          ln -s $PRG $SBIN/mount_nfs
Line 306  install_rootfs() Line 333  install_rootfs()
 #       ln -s $PRG $SBIN/mount_udf  #       ln -s $PRG $SBIN/mount_udf
         ln -s $PRG $SBIN/mount_unionfs          ln -s $PRG $SBIN/mount_unionfs
         ln -s $PRG $SBIN/newfs          ln -s $PRG $SBIN/newfs
           ln -s $PRG $RESCUE/newfs
         ln -s $PRG $SBIN/newfs_msdos          ln -s $PRG $SBIN/newfs_msdos
 #       ln -s $PRG $SBIN/nfsiod  #       ln -s $PRG $SBIN/nfsiod
 #       ln -s $PRG $SBIN/nos-tun  #       ln -s $PRG $SBIN/nos-tun
Line 314  install_rootfs() Line 342  install_rootfs()
         ln -s $PRG $SBIN/pflogd          ln -s $PRG $SBIN/pflogd
         ln -s $PRG $SBIN/quotacheck          ln -s $PRG $SBIN/quotacheck
         ln -s $PRG $SBIN/reboot          ln -s $PRG $SBIN/reboot
           ln -s $PRG $RESCUE/reboot
         ln -s $PRG $SBIN/halt          ln -s $PRG $SBIN/halt
           ln -s $PRG $RESCUE/halt
         ln -s $PRG $SBIN/fastboot          ln -s $PRG $SBIN/fastboot
         ln -s $PRG $SBIN/fasthalt          ln -s $PRG $SBIN/fasthalt
 #       ln -s $PRG $SBIN/recoverdisk  #       ln -s $PRG $SBIN/recoverdisk
Line 388  install_rootfs() Line 418  install_rootfs()
 build_image()  build_image()
 {  {
         echo "+++ Build ELWIX RootFS image ... $ROOTFS --> $REL/$ROOTFS_IMG"          echo "+++ Build ELWIX RootFS image ... $ROOTFS --> $REL/$ROOTFS_IMG"
        makefs -s ${ROOTFS_SIZE} -o minfree=0 $REL/$ROOTFS_IMG $ROOTFS        makefs -s ${ROOTFS_SIZE} -o minfree=0 $REL/$ROOTFS_IMG $ROOTFS || exit 1
         echo "+++ Completed ELWIX RootFS image ... $ROOTFS --> $REL/$ROOTFS_IMG"          echo "+++ Completed ELWIX RootFS image ... $ROOTFS --> $REL/$ROOTFS_IMG"
 }  }
   

Removed from v.1.10.2.3  
changed lines
  Added in v.1.10.2.4


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