From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Sat, 29 Mar 2008 17:13:51 +0100 Subject: [Buildroot] initramfs doesn't need root to create an image In-Reply-To: <1206802610.3224.180.camel@nigel-x60> (Nigel Kukard's message of "Sat\, 29 Mar 2008 14\:56\:50 +0000") References: <1206773941.3224.126.camel@nigel-x60> <20080329140004.GA25949@cloud.net.au> <1206799922.3224.157.camel@nigel-x60> <87myoh8us4.fsf@macbook.be.48ers.dk> <1206802610.3224.180.camel@nigel-x60> Message-ID: <87wsnl7bk0.fsf@macbook.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Nigel" == Nigel Kukard 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