[Buildroot] initramfs doesn't need root to create an image

Peter Korsgaard jacmet at uclibc.org
Sat Mar 29 16:13:51 UTC 2008


>>>>> "Nigel" == Nigel Kukard <nkukard at lbsd.net> writes:

 Nigel> Not fakeroot itself, but you cannot create a device if you're
 Nigel> a non-priv user. So ... nothing fails, makedevs generates
 Nigel> lovely zero size files instead of devices & fakeroot appears
 Nigel> to hide the errors.
 >> 
 >> But that's the point of fakeroot. Applications run from within
 >> fakeroot believes the trickery and sees the (fake) device nodes. I
 >> haven't looked into the initramfs stuff, but why wouldn't that work
 >> there as well?

 Nigel> Does fakeroot keep device-special information if you create
 Nigel> devices inside its environment? ie. if you create a /dev/hda
 Nigel> inside a fakeroot using mknod, tar it up, exit fakeroot, untar
 Nigel> it with admin privs, is it still a device special file?

Yes, that's the point of fakeroot.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list