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

Re: from / to /usr/: a summary



Marco d'Itri <md@Linux.IT> writes:

> On Dec 22, Goswin von Brederlow <goswin-v-b@web.de> wrote:
>
>> What early-boot-usr should do instead is ensure one of two things:
>> 
>> 1) initramfs is used so /usr will be mounted there
>> 2) everything needed to mount /usr is copied to /
> Yes, I was not clear. My point was that we will need a way to make sure 
> that users will not inadvertently make their system unbootable after an 
> upgrade.
> While depending on the right version of initramfs-tools is easy, and 
> detecting if an initramfs is configured in the boot loader may be 
> possible, I am not sure that a package can realiably change the boot 
> loader configuration if it is not correct.

Check the config. If it contains just the default entries then fine. If
all entries use the generated initramfs then fine too. Otherwise show a
debconf warning and let the admin fix it.

>> The same hook that is used to update initramfs could be used to re-copy
>> stuff to / on updates too. It might not be pretty but it wouldn't leave
>> people in the ditch.
> I do not think that copying stuff from /usr to / can work for the 
> general case, so if somebody does not want to use an initramfs then they
> can locally implement random workarounds as well.

I wasn't thinking of copying stuff from /usr/lib to /lib but rather to
/initrd/lib or something.

MfG
        Goswin


Reply to: