nrelease: Use part-by-label to identify root in .img
authorAaron LI <aly@aaronly.me>
Thu, 28 Feb 2019 07:59:00 +0000 (15:59 +0800)
committerAaron LI <aly@aaronly.me>
Thu, 28 Feb 2019 11:22:51 +0000 (19:22 +0800)
commit3ac648903e9d68df99a5051908ca1c1c8f9a651f
tree050abcaf45c01752b73c6a176635ef4c51e1be3f
parent46acecf8d0ddcae9f9536491351dcaa37ddb056c
nrelease: Use part-by-label to identify root in .img

Previously, the DragonFly .img hardcoded "da8" as the USB device, but
this may not be the case on some systems and requires user interaction
to boot.

Now that DragonFly has "/dev/part-by-label", use this new mechanism
(i.e., the label/name of the disklabel64(5) slice in the .img file) to
better identify the USB device with DragonFly installation image on it.
The label name is "DragonFly_${KERNCONF}" by default.
nrelease/Makefile