[Bug 199191] Allow _.disk.image name to be specified

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Apr 6 03:32:19 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199191

            Bug ID: 199191
           Summary: Allow _.disk.image name to be specified
           Product: Base System
           Version: 10.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: ask at develooper.com

I build several slightly different images from my nanobsd build; this small
patch makes it faster. The change makes a tiny bit more sense with an optional
option to create_image to specify a suffix for the log file. I'm not sure if
it's worth including though.

--- /usr/gsrc/freebsd/tools/tools/nanobsd/nanobsd.sh    2014-12-14
06:36:35.000000000 +0000
+++ /x/nanobsd/nanobsd.sh    2015-04-05 16:06:22.000000000 +0000
@@ -66,6 +66,7 @@

 # The default name for any image we create.
 NANO_IMGNAME="_.disk.full"
+NANO_IMG1NAME="_.disk.image"

 # Options to put in make.conf during buildworld only
 CONF_BUILD=' '
@@ -650,8 +654,8 @@
     fi

     if ${do_copyout_partition} ; then
-        echo "Writing out _.disk.image..."
-        dd conv=sparse if=/dev/${MD}s1 of=${NANO_DISKIMGDIR}/_.disk.image
bs=64k
+        echo "Writing out ${NANO_IMG1NAME}_..."
+        dd conv=sparse if=/dev/${MD}s1 of=${NANO_DISKIMGDIR}/${NANO_IMG1NAME}
bs=64k
     fi
     mdconfig -d -u $MD

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list