Changeset 13719 in hybrid for branches/releng-11


Ignore:
Timestamp:
Jan 17, 2017, 11:47:43 PM (8 years ago)
Author:
rick
Message:

Quick to allow update on 2nd partition 9->11 migration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-11/nanobsd/tools/image

    r13714 r13719  
    7272  if echo $release | grep -q -e '^9\.[0-9]-RELEASE\(-p[0-9]\{1,2\}\)\?$'; then
    7373    cat >> $updatecmd <<'EOF'
    74 tunefs -L WLIMGs3 /dev/ada0s3 || exit 1
     74. /etc/nanobsd.conf
     75NANO_LABEL="WLIMG"
     76
     77tunefs -L ${NANO_LABEL}s3 /dev/${NANO_DRIVE}s3 || exit 1
    7578/tools/update || exit 1
     79
     80# Quirck to fix partition table & label if partion is copied to second image.
     81if 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
     89fi
    7690EOF
    7791  elif echo $release | grep -q -e '^11\.[0-9]-RELEASE\(-p[0-9]\{1,2\}\)\?$'; then
    7892    cat >> $updatecmd <<'EOF'
    79 echo /tools/update || exit 1
     93/tools/update || exit 1
    8094EOF
    8195  else
Note: See TracChangeset for help on using the changeset viewer.