[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#673194: closed by maximilian attems <maks@stro.at> (Re: Bug#673194: initramfs-tools: mkinitramfs silently creates non-bootable initramfs when run as non-root user)



On Mon, May 21, 2012 at 11:17:56AM +0300, Markus Vuorio wrote:
> On 21 May 2012 02:42, Touko Korpela <touko.korpela@iki.fi> wrote:
> > On Fri, May 18, 2012 at 02:30:24PM +0000, maximilian attems wrote:
> >> have you tried to compare the content of both initramfs?
> >
> > I think closing of this bug was done too fast.
> > Markus, you can compare initramfs contents using "lsinitramfs -l" command.
> 
> Thanks for the tip. I did compare them and there was no difference in
> lsinitramfs printout. Then I proceeded to extract both and the only
> difference seems to be in file owners. All the files in the archives
> are owned by the user that ran mkinitramfs. I guess the kernel isn't
> comfortable with init owned by non-root.

$ whoami 
maks

$  /usr/sbin/mkinitramfs -o /tmp/ff

$ qemu-system-x86_64 -kernel /boot/vmlinuz-3.3.0-trunk-amd64 -initrd /tmp/ff -hda /dev/mapper/shockwave-testroot -append "root=/dev/sda"

not sure what you guys are waffling, id 0 can *allways* read user files.


-- 
maks



Reply to: