You are not logged in.

#26 2012-01-14 02:33:20

hybrid
Member
Registered: 2007-02-05
Posts: 262

Re: Error when booting with the new initscripts

mkinitcpio 0.8.2-1 which hit testing two days ago still doesn't seem to support mounting partitions from initramfs.

Offline

#27 2012-01-14 02:54:05

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Error when booting with the new initscripts

Hilarious that you mention this. I just made a post about it:

http://mailman.archlinux.org/pipermail/ … 22401.html

Offline

#28 2012-01-14 04:26:46

hybrid
Member
Registered: 2007-02-05
Posts: 262

Re: Error when booting with the new initscripts

Well I guess I should've checked the mailing lists before I posted my last comment. :>
I just checked the forum and I downloaded the package from testing and had a look at it but I couldn't find any hint that this feature may be included already. Does it need any alterations to the configs or does it automagically detect whether or not there are seperate partitions and automounts them?

Offline

#29 2012-01-14 04:28:28

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Error when booting with the new initscripts

http://projects.archlinux.org/mkinitcpi … e/init#n90

It's hardcoded for only /usr. I don't really want to support arbitrary mounting from the initramfs when its whole goal in life is to do the bare minimum setup for the real PID 1.

Last edited by falconindy (2012-01-14 04:29:51)

Offline

#30 2012-01-14 05:08:56

hybrid
Member
Registered: 2007-02-05
Posts: 262

Re: Error when booting with the new initscripts

I see. Well that will do - until the next project requires cable tv in early userspace or whatever they come up with next.
Thanks a lot for this fix, I appreciate

Offline

#31 2012-04-03 17:27:08

arch_archer
Member
Registered: 2010-05-19
Posts: 19

Re: Error when booting with the new initscripts

falconindy wrote:

Hilarious that you mention this. I just made a post about it:

http://mailman.archlinux.org/pipermail/ … 22401.html

Thank you very much for your work, can you please give me an advice how should I flawlessly use the great work you've done wink considering my situation:

So, I have an outdated system (several months), I haven't updated the system since I heard that the new initscripts version breaks the systems with separate /usr (now I just have error messages during the boot, but system is usable). My whole system (except the /boot of course) is encrypted using LUKS, my current mkinitcpio version is 0.8.0-3 and the initscripts is 2012-01.2-1. This is the HOOKS from my /etc/mkinitcpio.conf: HOOKS="base udev autodetect pata scsi sata encrypt filesystems usbinput".

So, if I understand it well, I should do these things:

1. Update the system
# pacman -Syu

2. Keeping in mind your statement (Include the fsck hook in /etc/mkinitcpio.conf. This needs to go
_before_ autodetect if your /usr is a different FS from your root.
), I should change the HOOKS so it looks like this: HOOKS="base udev fsck shutdown autodetect pata scsi sata encrypt filesystems usbinput"

3. Regenerate the image:
# mkinitcpio -p linux

4. Cross the fingers and restart smile

Is this all correct? I just don't like that the encrypt hook is _after_ the fsck, should it be before it? And if yes, then would it work correctly if it lays _before_ such hooks as pata, scsi, sata?

Please help me if you can, thank you very much, friend!

Added 10 minutes later:
And just out of curiosity: how does the /usr/lib/initcpio/init hook runs (when the /usr is on separate partition) and mounts the /usr considering the fact that the hook itself is physycally in the /usr?

Last edited by arch_archer (2012-04-03 18:18:04)

Offline

#32 2012-04-09 18:30:36

arch_archer
Member
Registered: 2010-05-19
Posts: 19

Re: Error when booting with the new initscripts

Up

Offline

#33 2012-04-10 02:58:07

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Error when booting with the new initscripts

You should take a look at 'lsinitcpio -a /boot/initramfs-linux.img'. A lot of your questions will be answered.

Offline

#34 2012-04-10 16:04:51

arch_archer
Member
Registered: 2010-05-19
Posts: 19

Re: Error when booting with the new initscripts

falconindy wrote:

You should take a look at 'lsinitcpio -a /boot/initramfs-linux.img'. A lot of your questions will be answered.

Thanks for the tip, though it doesn't answer all the questions in my post. Will you (please!) let me know are my specified steps correct and safe for my data and system and if not, what are the correct steps to update? Thank you in advance, and kind regards.

Offline

Board footer

Powered by FluxBB