Re: Root device independent bootable disk images

2018-12-15 Thread Andreas Gustafsson
I have now committed this. I have tested various combinations of i386 and amd64 install and live images on USB sticks and qemu, but not the amd64 UEFI install image nor other ports. If you are using the UEFI install image or the pmax, sparc, sparc64, sun2, sun3, or vax live images, now would be a

Re: Root device independent bootable disk images

2018-12-13 Thread Izumi Tsutsui
gson@ wrote: > > OMIT_SWAPIMG was added to save time of dd'ing sd0root images > > to memory sticks. wd0root images include swap partition for emulators. > > Thank you for the background. Omitting the swap area saves less than > 10% of the time to dd the image (128 MB out of 1536 MB); if there ar

Re: Root device independent bootable disk images

2018-12-13 Thread Andreas Gustafsson
Joerg Sonnenberger wrote: > On Wed, Dec 12, 2018 at 05:18:55PM +0200, Andreas Gustafsson wrote: > > Since jmcneill's commit of src/lib/libutil/getfsspecname.c 1.5, NetBSD > > supports the special string "ROOT." as an alias for the root device in > > /etc/fstab. This can be used to avoid hard-codin

Re: Root device independent bootable disk images

2018-12-13 Thread Andreas Gustafsson
Izumi Tsutsui wrote: > > The "build.sh live-image" target currently builds two live images each > > for i386 and amd64, with names containing "-wd0root" and "-sd0root", > > respectively. With the proposed change, these would become almost > > identical, differing only in size and the OMIT_SWAPIMG

Re: Root device independent bootable disk images

2018-12-12 Thread Joerg Sonnenberger
On Wed, Dec 12, 2018 at 05:18:55PM +0200, Andreas Gustafsson wrote: > Since jmcneill's commit of src/lib/libutil/getfsspecname.c 1.5, NetBSD > supports the special string "ROOT." as an alias for the root device in > /etc/fstab. This can be used to avoid hard-coding the device name of > the root di

Re: Root device independent bootable disk images

2018-12-12 Thread Izumi Tsutsui
> The question is, is there any reason to keep the existing machinery > for specifying a fixed device name via the BOOTDISK make variable? The only reason is there was no way to specify boot device independent format in fstab(5) when I wrote the bootimage support. (PR/45153 and PR/45155, back in 2

Root device independent bootable disk images

2018-12-12 Thread Andreas Gustafsson
Hi all, Since jmcneill's commit of src/lib/libutil/getfsspecname.c 1.5, NetBSD supports the special string "ROOT." as an alias for the root device in /etc/fstab. This can be used to avoid hard-coding the device name of the root disk on bootable disk images, allowing a single image to be booted fr