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

update-initramfs, chroots ro /boot, and debian-live (Re: d-l and /boot ro)



On Mon, Sep 03, 2007 at 08:57:41PM +0200, Daniel Baumann wrote:
> maximilian attems wrote:
> > well update-initramfs checks if there is a readable /proc/mounts,
> > so if /proc is !mounted everything si fine.
> 
> that's what i stated.. but it's ugly to mount, do stuff, unmount, update
> initramfs, mount, do stuff, and unmount again.
> 
> it would be, probably, better if update-initramfs could handle read-only
> /boot.
Unfortunately the problem is that it *does* handle ro boot, as a
special case (and not chroot).

Perhaps it should also test "`stat -c '%i' /boot`" = "`stat -c '%i'
/proc/1/root/boot`" or some such other chroot indicator.

Justin



Reply to: