Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(SOLVED)-Initramfs fails to find cryptsetup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Wed Apr 04, 2012 12:05 pm    Post subject: (SOLVED)-Initramfs fails to find cryptsetup Reply with quote

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.8) 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
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Wed Apr 04, 2012 12:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Wed Apr 04, 2012 12:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Wed Apr 04, 2012 12:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Wed Apr 04, 2012 2:10 pm    Post subject: Reply with quote

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 :oops:

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum