tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Changing disk image boot options without root privileges



dyoung%pobox.com@localhost (David Young) writes:

>On Sun, Apr 16, 2017 at 01:48:30PM +0300, Andreas Gustafsson wrote:
>> I can fix that using vnconfig and installboot like this:
>> 
>>   vnconfig vnd0 NetBSD-7.99.1-amd64-live-wd0root.img
>>   installboot -e -o console=com0 /dev/vnd0a
>>   vnconfig -u vnd0

>installboot can run on a disk image directly, unless there has
>been some regression.

Yes, but it can only write to a single partition image. For a disk image,
it would need to interpret disklabel (or other partitioning information)
itself and offset disk accesses accordingly.

-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index