View previous topic :: View next topic |
Author |
Message |
FizzyWidget Veteran
Joined: 21 Nov 2008 Posts: 1133 Location: 127.0.0.1
|
Posted: Wed Apr 04, 2012 12:05 pm Post subject: (SOLVED)-Initramfs fails to find cryptsetup |
|
|
See last post for solution
Having used the initramfs i have for quite a few months now, everything was going fine, but after an update yesterday every time i boot my system now i get dumped to a rescue shell with the error
Code: | line 11: /bin/cryptsetup: not found |
which is strange as it is there, i can see its there, yet if i run ./cryptsetup i get the same error
my init
Code: | #!/bin/sh
mount -t proc proc /proc
mount -t sysfs sysfs /sys
mount -t devtmpfs devtmpfs /dev
#for a french azerty keyboard
loadkmap < /etc/kmap-fr
rescue() {
echo "Dropping to rescue shell" >&2
/bin/sh </dev/tty1 >/dev/tty1 2>&1
}
/bin/cryptsetup luksOpen /dev/sda2 vault || rescue
/bin/lvm pvscan || rescue
/bin/lvm vgscan || rescue
/bin/lvm vgchange -ay vg || rescue
mount -r /dev/mapper/vg-root /newroot || rescue
CMDLINE=`cat /proc/cmdline`
umount /dev
umount /sys
umount /proc
exec /bin/busybox switch_root /newroot /sbin/init ${CMDLINE} |
also get an error about tty
Code: | /bin/sh: can't access tty; job control turned off |
I am using ~arch amd64 has there been any updates to lvm mdadm udev (other than masking 1. which i should be aware of? At the moment i have an unusable system _________________ I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Last edited by FizzyWidget on Wed Apr 04, 2012 3:43 pm; edited 2 times in total |
|
Back to top |
|
|
Veldrin Veteran
Joined: 27 Jul 2004 Posts: 1945 Location: Zurich, Switzerland
|
Posted: Wed Apr 04, 2012 12:27 pm Post subject: |
|
|
why is you cryptsetup in /bin (as opposed to /sbin), and with which flags did you build it? _________________ read the portage output!
If my answer is too concise, ask for an explanation. |
|
Back to top |
|
|
FizzyWidget Veteran
Joined: 21 Nov 2008 Posts: 1133 Location: 127.0.0.1
|
Posted: Wed Apr 04, 2012 12:29 pm Post subject: |
|
|
makes no difference if i put it in /bin or /sbin - it doesnt find it at either place, only flag i used was static - which i was advised to use along with using it on lvm and busybox _________________ I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch. |
|
Back to top |
|
|
Veldrin Veteran
Joined: 27 Jul 2004 Posts: 1945 Location: Zurich, Switzerland
|
Posted: Wed Apr 04, 2012 12:55 pm Post subject: |
|
|
that is what I was hinting at.
static seems reasonable - I use cryptsetup in conjunction with genkernel.
can you verify its size, and or checksum, and compare it to the one installed on the main system/partition?
V. _________________ read the portage output!
If my answer is too concise, ask for an explanation. |
|
Back to top |
|
|
FizzyWidget Veteran
Joined: 21 Nov 2008 Posts: 1133 Location: 127.0.0.1
|
Posted: Wed Apr 04, 2012 2:10 pm Post subject: |
|
|
solved it, and boy is my face red, seems i backed up the wrong package.use file and although it did have static next to the required files, it didnt have the -libs part, so when i did the update it recompiled the files incorrectly
Code: | sys-fs/lvm2 static
sys-fs/mdadm static
sys-apps/busybox static
=sys-apps/util-linux-2.20.1-r1 static-libs
>=dev-libs/libgpg-error-1.10-r1 static-libs
>=dev-libs/libgcrypt-1.5.0-r1 static-libs
>=dev-libs/popt-1.16-r1 static-libs |
^^^^ adding that from the correct package.use file sorted everything out _________________ I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch. |
|
Back to top |
|
|
|