tomuta / debian-mini-odroid-c1

Script to build a minimal Debian sd card image.
75 stars 39 forks source link

Use fakeroot instead of requiring root #9

Open mkesper opened 9 years ago

mkesper commented 9 years ago

Hi,

I think it should it be possible to use https://wiki.debian.org/FakeRoot instead of requiring root for building. Building kernels as root is strongly discouraged.

tomuta commented 9 years ago

I agree it is discouraged and I generally don't like the idea of doing stuff as root, either. But I don't think you can mount block devices using fakeroot. Root privileges aren't really needed to build the kernel, all they are needed for are for mounting the image file, formatting it, and copying over the data.

mkesper commented 9 years ago

How about separating make and "make install" (as root) then?

tomuta commented 9 years ago

That would be an option.