Page MenuHomeFreeBSD

D48788.1777128677.diff
No OneTemporary

Size
656 B
Referenced Files
None
Subscribers
None

D48788.1777128677.diff

diff --git a/tools/tools/nanobsd/defaults.sh b/tools/tools/nanobsd/defaults.sh
--- a/tools/tools/nanobsd/defaults.sh
+++ b/tools/tools/nanobsd/defaults.sh
@@ -308,6 +308,22 @@
done
}
+#
+# Switch the current root partition in the target file system tab.
+# Takes two arguments: the current, and the new partition.
+#
+tgt_switch_root_fstab()
+{
+ local current new
+ current="$1"
+ new="$2"
+
+ for f in ${NANO_WORLDDIR}/etc/fstab ${NANO_WORLDDIR}/conf/base/etc/fstab
+ do
+ sed -i "" "s=${NANO_DRIVE}${current}=${NANO_DRIVE}${new}=g" "${f}"
+ done
+}
+
# run in the world chroot, errors fatal
CR() {
chroot "${NANO_WORLDDIR}" /bin/sh -exc "$*"

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 25, 2:51 PM (3 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28428580
Default Alt Text
D48788.1777128677.diff (656 B)

Event Timeline