NanoBSD update scripts are broken when using disk labels

Nick Hibma nick at van-laarhoven.org
Thu Nov 28 10:00:54 UTC 2013


On 28 Nov 2013, at 09:49, Nick Hibma <nick at van-laarhoven.org> wrote:

> On 24 Nov 2013, at 22:13, Ilya Bakulin <webmaster at kibab.com> wrote:
> 
>> After looking in the /root/updatep2 script I realized that it cannot
>> work when NANO_LABEL parameter
>> is set when building the NanoBSD image.
> 
> The problem is that you need the device, not the UFS label to update the active partition. Attached the fixed updatep1 and updatep2 scripts. I’ve fixed exactly this problem yesterday to make booting from a USB thumb drive, and embedded CF card using the same image work.
> 
> If you could test them, I’d be more than happy to commit them.

The dev= line was incorrect in the scripts I provided. Try the attached files instead.

Nick Hibma
nick at van-laarhoven.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: updatep1
Type: application/octet-stream
Size: 2104 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-embedded/attachments/20131128/44905427/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: updatep2
Type: application/octet-stream
Size: 2355 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-embedded/attachments/20131128/44905427/attachment-0001.obj>


More information about the freebsd-embedded mailing list