Changeset 13719 in hybrid for branches/releng-11
- Timestamp:
- Jan 17, 2017, 11:47:43 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-11/nanobsd/tools/image
r13714 r13719 72 72 if echo $release | grep -q -e '^9\.[0-9]-RELEASE\(-p[0-9]\{1,2\}\)\?$'; then 73 73 cat >> $updatecmd <<'EOF' 74 tunefs -L WLIMGs3 /dev/ada0s3 || exit 1 74 . /etc/nanobsd.conf 75 NANO_LABEL="WLIMG" 76 77 tunefs -L ${NANO_LABEL}s3 /dev/${NANO_DRIVE}s3 || exit 1 75 78 /tools/update || exit 1 79 80 # Quirck to fix partition table & label if partion is copied to second image. 81 if mount | grep -q ${NANO_DRIVE}s1; then 82 tunefs -L ${NANO_LABEL}s2a /dev/${NANO_DRIVE}s2a || exit 1 83 trap "umount /mnt" 1 2 15 EXIT 84 mount /dev/${NANO_DRIVE}s2a /mnt 85 sed -i "" "s/${NANO_LABEL}s1/${NANO_LABEL}s2/" /mnt/conf/base/etc/fstab 86 sed -i "" "s/${NANO_LABEL}s1/${NANO_LABEL}s2/" /mnt/etc/fstab 87 umount /mnt 88 trap 1 2 15 EXIT 89 fi 76 90 EOF 77 91 elif echo $release | grep -q -e '^11\.[0-9]-RELEASE\(-p[0-9]\{1,2\}\)\?$'; then 78 92 cat >> $updatecmd <<'EOF' 79 echo/tools/update || exit 193 /tools/update || exit 1 80 94 EOF 81 95 else
Note:
See TracChangeset
for help on using the changeset viewer.