[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/54201: disklabel(8) annoyingly overrides user intent when run as a "native" tool
>Synopsis: disklabel(8) annoyingly overrides user intent when run as a "native" tool
>Arrival-Date: Sun May 12 23:20:00 +0000 2019
>Originator: Jason Thorpe
Jason's messy garage of hackery
NetBSD netbsd-vm 8.99.37 NetBSD 8.99.37 (GENERIC) #19: Mon Apr 15 08:49:13 PDT 2019 thorpej@BigMac.local:/Volumes/Data0/Users/thorpej/hack/NetBSD/current/netbsd-src/sys/arch/amd64/compile/GENERIC amd64
The -m flag for disklabel(8) behaves differently when build as a host tool vs run as a native tool with a different target machine. In my scenario, I was attempting to write a disklabel to a NetBSD MBR partition for evbmips. This failed when run as a "native" tool with -M evbmips on NetBSD/amd64, but succeeded when the host tool (nbdisklabel) was run with the same arguments.
The handling of the -m flag seems unnecessarily complex in the disklabel(8) code, and also seems that how it works to lead to user confusion.
Use disklabel -m as a "native" tool with a different target machine that does not normally "use mbr".
Main Index |
Thread Index |