You are not logged in.

#126 2006-06-06 22:40:59

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: new initramfs, testers welcome

Try this:

mkinitcpio -s
gen_init_cpio /tmp/.tmpfilelist.XXXX

where XXXX is a random number and see if it segfault, if it does then try to install gen-init-cpio package again or debug it via strace

Offline

#127 2006-06-07 22:59:13

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: new initramfs, testers welcome

Erm, I think that one's my fault - an 'ldd' issue with keymap.  I'll be release an new package later tonight, and we can see if that's fixed.

Offline

#128 2006-06-13 16:09:33

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: new initramfs, testers welcome

Anyone tried the encryption stuff ?
Actually, it's pretty much not working, the root is detected as encrypted device, but:
1- no /dev/mapper folder so mknod /dev/mapper/control will fail, ok folder created and issue is gone.
2- now control is created, a password is asked and /dev/mapper/root is created as it should be, but when the control is passed to kinit and rc.sysinit take the hand on the boot, /dev/mapper/root does not exist and our setup here does not use /initrd to provide root mapper device, so i did the old mkinitrd trick (in filesystem hook) to copy /dev/mapper/root to /new_root/initrd/dev/mapper/root where rc.sysinit finds it and copy/use it but again i ran into very ugly troubles after that I don't know if i should blame my knowledge on this (1st encryption attempt) or the poor encrypt hook

Offline

#129 2006-06-13 17:24:36

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: new initramfs, testers welcome

_Gandalf_ wrote:

Anyone tried the encryption stuff ?

Yes, works fine.

Actually, it's pretty much not working, the root is detected as encrypted device, but:
1- no /dev/mapper folder so mknod /dev/mapper/control will fail, ok folder created and issue is gone.

It is there, at least it works here perfectly

2- now control is created, a password is asked and /dev/mapper/root is created as it should be, but when the control is passed to kinit and rc.sysinit take the hand on the boot, /dev/mapper/root does not exist and our setup here does not use /initrd to provide root mapper device, so i did the old mkinitrd trick (in filesystem hook) to copy /dev/mapper/root to /new_root/initrd/dev/mapper/root where rc.sysinit finds it and copy/use it but again i ran into very ugly troubles after that I don't know if i should blame my knowledge on this (1st encryption attempt) or the poor encrypt hook

That is taken care of with udev. This device stealing trick is very ugly and has been removed intentionally.

Offline

#130 2006-06-13 17:44:53

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: new initramfs, testers welcome

Then maybe i'm doing something wrong ? a little summary
cryptsetup luksFormat /dev/hda6
cryptsetup luksOpen /dev/hda6 root
mke2fs -j /dev/mapper/root
(install system ..)
add encrypt hook before the filesystem hook after udev and reboot
I got an error about /dev/mapper not found and a panic
I added the folder manually in the encrypt hook, that fixed it, and the system booted but I can't even login, I tried with init 1, /dev/mapper/root does not exist and so the root device is not mounted (well at least not after the early user-space..

Offline

#131 2006-06-13 18:19:27

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: new initramfs, testers welcome

_Gandalf_ wrote:

I got an error about /dev/mapper not found and a panic
I added the folder manually in the encrypt hook, that fixed it

That's a bug, I use both lvm2 and encryption, lvm2 creates the directory, encrypt doesn't, add

add_dir "/dev/mapper"

to the encrypt install hook.

and the system booted but I can't even login, I tried with init 1, /dev/mapper/root does not exist and so the root device is not mounted (well at least not after the early user-space..

I still haven't removed my old custom udev rule to create the devices. Perhaps something is wrong in udev.rules.
Line 192 in udev.rules says KERNEL=="dm-[0-9]*", NAME="", maybe remove that, it seems to break the rule in line 363.

Offline

#132 2006-06-13 23:46:22

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: new initramfs, testers welcome

That was my solution for hte /dev/mapper folder, anyway 1st, my bad, I donno how on earth did i remove login.defs when i was restoring /etc files, so login problem wasn't related to udev, anyway as for the error about /dev/mapper/root i was getting is solved now, I just removed the like

KERNEL=="dm-[0-9]*", NAME=""

which gave me /dev/mapper/root now and everything works very fine smile

Thx

Offline

#133 2006-06-14 00:16:40

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: new initramfs, testers welcome

brain0 wrote:

That's a bug, I use both lvm2 and encryption, lvm2 creates the directory, encrypt doesn't, add

add_dir "/dev/mapper"

to the encrypt install hook.

Thanks, fixed in svn.

Offline

#134 2006-06-14 11:45:24

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: new initramfs, testers welcome

_Gandalf_ wrote:

That was my solution for hte /dev/mapper folder, anyway 1st, my bad, I donno how on earth did i remove login.defs when i was restoring /etc files, so login problem wasn't related to udev, anyway as for the error about /dev/mapper/root i was getting is solved now, I just removed the like

KERNEL=="dm-[0-9]*", NAME=""

which gave me /dev/mapper/root now and everything works very fine smile

Thx

This is all fixed in testing now in the updated mkinitcpio, device-mapper, udev, cryptsetup packages. The hooks have been moved out of mkinitcpio into these packages btw.

Offline

#135 2006-06-16 03:07:14

damjan
Member
Registered: 2006-05-30
Posts: 452

Re: new initramfs, testers welcome

I'm using mkinitcpio-0.4.2-1 from testing, on an otherwise non-testing Arch.
Thes hook in the userui userui 0.6.3-2 package tries this:
for f in /etc/splash/suspend2/*; do add_file $f; done
but there's a directory there "images/" and add_file will not create the correct entry in the file list, so later gen_init_cpio complains and the theme images are not added.

I'd also suggest to add an add_dir_recursively function in /lib/initcpio/functions, so that add_dir_recursively it can be used in situations like this.

Here's what I've come up with, but I'm sure I have bugs smile
add_dir_recursively ()
{
  for f in $1/*; do
    [ -d $f ] && add_dir_recursively $f
    [ -f $f ] && add_file $f
  done
}

Offline

#136 2006-06-16 03:10:38

damjan
Member
Registered: 2006-05-30
Posts: 452

Re: new initramfs, testers welcome

Also, about the "-a" option. Maybe it should also assume "-s" .. I just made a list of files I'd like in the initcpio.img, and after running mkinitcpio it deleted my filelist... ARGH.. didn't expect that.

Also a "-p Prepend to an existing filelist." option might be usefull.

Offline

#137 2006-06-16 14:42:33

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: new initramfs, testers welcome

damjan wrote:

Also, about the "-a" option. Maybe it should also assume "-s" .. I just made a list of files I'd like in the initcpio.img, and after running mkinitcpio it deleted my filelist... ARGH.. didn't expect that.

Good idea - I will fix in svn

damjan wrote:

Also a "-p Prepend to an existing filelist." option might be usefull.

Hmmm, I don't know about that - the order of the file list doesn't make a huge difference, especially if both are auto-generated... and really the -a and -s stuff is for diagnostics more than anything else.
If you want files/binaries in the initcpio image, try using the FILES and BINARIES entries in the config files.

Offline

#138 2006-06-16 16:02:06

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: new initramfs, testers welcome

damjan wrote:

I'm using mkinitcpio-0.4.2-1 from testing, on an otherwise non-testing Arch.
Thes hook in the userui userui 0.6.3-2 package tries this:
for f in /etc/splash/suspend2/*; do add_file $f; done
but there's a directory there "images/" and add_file will not create the correct entry in the file list, so later gen_init_cpio complains and the theme images are not added.

I'd also suggest to add an add_dir_recursively function in /lib/initcpio/functions, so that add_dir_recursively it can be used in situations like this.

Here's what I've come up with, but I'm sure I have bugs smile
add_dir_recursively ()
{
  for f in $1/*; do
    [ -d $f ] && add_dir_recursively $f
    [ -f $f ] && add_file $f
  done
}

Sorry, I just wrote the hook and sent it to ipthitus, but never actually tested it with fbsplash (due to a slow machine). The best solution would indeed be a add_dir_recursive() function, hopefully that will be added *looks at phrakture*.

Offline

#139 2006-06-16 18:13:37

damjan
Member
Registered: 2006-05-30
Posts: 452

Re: new initramfs, testers welcome

phrakture wrote:

Hmmm, I don't know about that - the order of the file list doesn't make a huge difference, especially if both are auto-generated... and really the -a and -s stuff is for diagnostics more than anything else.
If you want files/binaries in the initcpio image, try using the FILES and BINARIES entries in the config files.

True, while playing with the filelist to see what's going on I completely forgot about the config file smile

Offline

#140 2006-06-16 18:24:48

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: new initramfs, testers welcome

brain0 wrote:

The best solution would indeed be a add_dir_recursive() function, hopefully that will be added *looks at phrakture*.

Added in svn, as "add_full_dir" (I like the name better.. 'recursively' is hard to spell, heh)

Offline

#141 2006-06-29 18:59:34

hudson
Member
Registered: 2004-07-06
Posts: 78

Re: new initramfs, testers welcome

Hi guys,

I was not that confused about gensplash at boot but now I am...  sad Before I changed to mkinitcpio from mkinitrmfs everything worked like a charm with my beyond kernel. Now I get my boot screen up and running after udev has been loaded, Why is that? How can I make it load faster? Also, my background image is not being set on VCs at boot, I have tried to add this line in rc.conf without any luck:

 CONSOLEFONT=default8x16.psfu.gz 

My mkinitcpio looks like this:

MODULES="" 
BINARIES=""
FILES=""
HOOKS="base udev autodetect ide filesystems"

...and in my grub file:

title beyondNsplash
root (hd1,0)
kernel /vmlinuz26beyond root=/dev/hdb3 video=vesafb:ywrap,1024x768-32@75 splash=silent,kdgraphics,theme:NewLinux,fadein quiet CONSOLE=/dev/tty1 resume2=swap:/dev/hdb2 ro
initrd /foo.img
boot

Now some good news about your work, my boot time to login screen is why much faster than with mkinitramfs, good work guys!!! And everything else is working as it suppose too, but I havent tested all of it but so for so good.  big_smile

Offline

#142 2006-06-29 19:03:29

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: new initramfs, testers welcome

The current gensplash doesn't work with mkinitcpio. dtw hasn't added the needed hook yet.

Offline

#143 2006-06-29 19:17:29

hudson
Member
Registered: 2004-07-06
Posts: 78

Re: new initramfs, testers welcome

I must have missed that one when going through the 8 pages.. :oops:
Btw. do I need an extra module loaded if I want tvout??

Thx in advance!!!

Offline

#144 2006-06-30 13:44:25

ahioros
Member
From: Panamá
Registered: 2005-11-26
Posts: 41
Website

Re: new initramfs, testers welcome

Snowman wrote:

The current gensplash doesn't work with mkinitcpio. dtw hasn't added the needed hook yet.

:-(
but mkinitcpio works fine for me :-)

Offline

#145 2006-07-01 13:28:46

damjan
Member
Registered: 2006-05-30
Posts: 452

Re: new initramfs, testers welcome

Snowman wrote:

The current gensplash doesn't work with mkinitcpio. dtw hasn't added the needed hook yet.

It surelly works. You just need to include the proper files in the initial ram disk.

Just add
BINARIES="/sbin/splash_helper"
FILES="your splash theme files here"
to /etc/mkinitcpio.conf and recreate the ram disk.

Offline

#146 2006-07-01 18:40:36

Phrodo_00
Member
From: Seattle, WA
Registered: 2006-04-09
Posts: 342
Website

Re: new initramfs, testers welcome

damjan wrote:
Snowman wrote:

The current gensplash doesn't work with mkinitcpio. dtw hasn't added the needed hook yet.

It surelly works. You just need to include the proper files in the initial ram disk.

Just add
BINARIES="/sbin/splash_helper"
FILES="your splash theme files here"
to /etc/mkinitcpio.conf and recreate the ram disk.

I'll try that, I had already thought of that, but I didn't know what to include... Thank you BTW ^^

Offline

#147 2006-07-03 10:14:12

hudson
Member
Registered: 2004-07-06
Posts: 78

Re: new initramfs, testers welcome

Thx. duders, I will try that when I get home from work  big_smile

Offline

#148 2006-07-03 22:55:31

ahioros
Member
From: Panamá
Registered: 2005-11-26
Posts: 41
Website

Re: new initramfs, testers welcome

Gensplash works fine on initcpio

just add on /etc/mkinitcpio.conf

BINARIES="/sbin/splash_helper"
FILES="/etc/splash/darch/1024x768.cfg /etc/splash/darch/images/background-1024x768.png /etc/splash/darch/images/verbose-1024x768.png /etc/splash/darch/Vera.ttf"
this example is for the darch theme  smile

tnks to damjan for the tip.

Offline

#149 2006-07-03 23:04:12

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: new initramfs, testers welcome

Or you can hack mkinitcpio yourself
http://wael.nasreddine.com/trash/splashutils/ wink
i did it a long time ago, but still dtw didn't implement it, phrakture need HCONFIG implementation too, that's done as well

Offline

#150 2006-07-08 05:16:58

geekner
Member
From: Mesa, AZ
Registered: 2006-01-12
Posts: 16
Website

Re: new initramfs, testers welcome

I havent had a chance to see if this was reported before, so forgive me if this was already mentioned.  8)

I currently run kernel26beyond and mkinitcpio from testing, I recently had to install a replacement motherboard. Replacing the motherboard also changed the chipset and modules, from via to nforce3 drivers (Abit KV8-Max3 (via) to Abit NF8-V2 (nf3)). On boot, the wrong IDE module was loaded and there was a kernel panic (Could not read hd(0,0) or something similer). I had to load an older kernel (2.6.15-archck) and manually remake the beyond mkinitcpio image, after that it booted fine. Is that normal or a bug? Archck kernel had no problems detecting the right IDE drives after a major hardware change. It seems to just be a functionality issue or bug with mkinitcpio. Any clarification would be appreciated.

Offline

Board footer

Powered by FluxBB