freebsd / freebsd-wifi-build

freebsd-wifi-build
141 stars 59 forks source link

Make sure that netboot kernel is writable before copying mfsroot into it and fail if not #105

Closed ivaniacono closed 7 years ago

ivaniacono commented 7 years ago

Hi, I've noticed that when I try to build a netboot image, the dd command in build_netboot silently fails when copying the mfsroot into the kernel file. The issue seems to be caused by the .netboot copy of the kernel file not having write permission. I'm experiencing this while building a firmware image for an MT7628 based board using the ralink cfg. This patch works for me, producing a firmware image with the mfsroot embedded into the kernel. Maybe am I missing something else? Thanks