diff options
| author | Jose Luis Duran <jlduran@FreeBSD.org> | 2024-11-18 00:16:50 +0000 |
|---|---|---|
| committer | Jose Luis Duran <jlduran@FreeBSD.org> | 2024-11-20 22:31:56 +0000 |
| commit | 87e87fecb139d60a00837f004de0d37dbecd205c (patch) | |
| tree | f8301f2dcdc15e80cd9e397c1474edca99504ae5 /tools | |
| parent | accf71534c612b76ee2701f2dfcaa464748e527a (diff) | |
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/tools/nanobsd/legacy.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/tools/nanobsd/legacy.sh b/tools/tools/nanobsd/legacy.sh index 58288d063b4a..a45b447337b2 100644 --- a/tools/tools/nanobsd/legacy.sh +++ b/tools/tools/nanobsd/legacy.sh @@ -116,14 +116,15 @@ create_code_slice ( ) ( trap "echo 'Running exit trap code' ; df -i ${MNT} ; umount ${MNT} || true ; mdconfig -d -u $MD" 1 2 15 EXIT - bsdlabel -w ${MD} + gpart create -s bsd "${MD}" + gpart add -t freebsd-ufs -b 16 "${MD}" if [ -f ${NANO_WORLDDIR}/boot/boot ]; then echo "Making bootable partition" gpart bootcode -b ${NANO_WORLDDIR}/boot/boot ${MD} else echo "Partition will not be bootable" fi - bsdlabel ${MD} + gpart list ${MD} # Create first image populate_slice /dev/${MD}${NANO_PARTITION_ROOT} ${NANO_WORLDDIR} ${MNT} "${NANO_ROOT}" |
