Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153494904
D48788.id150331.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
658 B
Referenced Files
None
Subscribers
None
D48788.id150331.diff
View Options
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
@@ -304,6 +304,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
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 11:29 AM (20 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31974304
Default Alt Text
D48788.id150331.diff (658 B)
Attached To
Mode
D48788: nanobsd: Switch the / partition in fstab
Attached
Detach File
Event Timeline
Log In to Comment