You are not logged in.

#1 2012-06-02 21:26:36

nnihitek
Member
Registered: 2012-06-02
Posts: 3

Trouble with booting system after upgrade udev=>systemd

Hi everybody,

I have been trouble with my system since last upgrade (udev => systemd)

My issue is something like this: https://bbs.archlinux.org/viewtopic.php?pid=1106157 but advice from this discussion doesn't work.

When system booting, *immediately* (very fast, too fast) display login screen after start parsing hook [udev]
Of course, i can't login - type username and i have redraw screen again on all /dev/tty* - i have no chance to type password.
Many invalid logins suspend init for 5 minutes and allow me see display error due stop redraw screen - libpam.so.0 cannot find.

I suspect that, partitions aren't mount (this fast login screen doesn't have even hostname). I have a 4 discs, with many partitions - mounting
this take a some time (+- 5 secs).

In rescuecd, i can mount all partitions and chroot. In chroot all works fine - /bin/login (i was checked authorization on all users),
paths and pams are ok. Of course i try ,,default rescue trick'': `pacman -Suy linux udev mkinitcpio` and 'mkinitcpio -p linux' on rescuecd
but nothing it's changed after reboot. I checking grub config, and unpack and check initramfs-linux.img - all ok.
In my mkinitcpio.conf ofcourse i have MODULES="ext3" (for my filesystems).

Please help.

Offline

#2 2012-06-03 16:05:00

alekgr
Member
From: dallas Texas
Registered: 2012-03-22
Posts: 7

Re: Trouble with booting system after upgrade udev=>systemd

Yea, I got the same issue here.
Seems to be with issue with pam and maybe with systemd.. Still troubleshooting

Last edited by alekgr (2012-06-03 16:05:19)

Offline

#3 2012-06-03 17:02:07

nnihitek
Member
Registered: 2012-06-02
Posts: 3

Re: Trouble with booting system after upgrade udev=>systemd

Downgrade udev (to 182-2) and mkinitcpio (to 0.8.8-1) fixing problem at now, but it's only workaround (ex: xorg-* also requires downgrade to working)

Offline

#4 2012-06-03 22:28:15

crab
Member
From: Brisbane, Australia
Registered: 2011-05-01
Posts: 34

Re: Trouble with booting system after upgrade udev=>systemd

This may or may not be related... but I saw this message just now during an upgrade:

(121/168) upgrading mkinitcpio                     [###################] 100%
==> If your /usr is on a separate partition, you must add the "usr" hook
    to /etc/mkinitcpio.conf and regenerate your images before rebooting

And am wondering what the message means by if /usr is on a separate partition - separate partition to what?  /boot? / ?
I have my /usr partition in the same partition as /  (but /boot is in a different partition)

Logic tells me I'm safe (haven't rebooted yet), as / is "master", and anything else is a separate partition, and I have /usr on the same partition as /.

Do you guys have separate /usr and/or /boot partitions?  As stated in first sentence this may not be related, but looks important...

Offline

#5 2012-06-03 22:35:46

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: Trouble with booting system after upgrade udev=>systemd

crab wrote:

This may or may not be related... but I saw this message just now during an upgrade:

(121/168) upgrading mkinitcpio                     [###################] 100%
==> If your /usr is on a separate partition, you must add the "usr" hook
    to /etc/mkinitcpio.conf and regenerate your images before rebooting

And am wondering what the message means by if /usr is on a separate partition - separate partition to what?  /boot? / ?
I have my /usr partition in the same partition as /  (but /boot is in a different partition)

Logic tells me I'm safe (haven't rebooted yet), as / is "master", and anything else is a separate partition, and I have /usr on the same partition as /.

Do you guys have separate /usr and/or /boot partitions?  As stated in first sentence this may not be related, but looks important...

It means separate from /. So yes, you're right, you are "safe" from having to do anything with this message on your system.

And to the other people on this thread: make sure you do have all your packages uniformly updated, including any pam-related AUR or ABS-build packages. libpam and the pam module directory (.../lib/security) were moved from /lib to /usr/lib a little while back, so make sure that anything that cares about where these may be have been updated so they aren't confused by this move.

Last edited by ataraxia (2012-06-03 22:40:22)

Offline

#6 2012-06-03 22:48:12

crab
Member
From: Brisbane, Australia
Registered: 2011-05-01
Posts: 34

Re: Trouble with booting system after upgrade udev=>systemd

ataraxia wrote:

It means separate from /. So yes, you're right, you are "safe" from having to do anything with this message on your system.

Cheers ataraxia smile

Offline

#7 2012-06-04 20:28:02

OrangeRoot1000
Member
From: TN -- USA
Registered: 2008-08-07
Posts: 106
Website

Re: Trouble with booting system after upgrade udev=>systemd

I am trying to get my computer updated since the udev change a few days ago.
Usually on major changes I looked at the main home page, but here I didn't.
I know we do chroot all the time with an install and such, but this is the
first time I have had to specifially call one on a box. I am getting a failure
awk, gawk [: unary guides do not exist as a file or directory. Looking inside
of bin there is nothing from mkinitcpio to point to for the link in /etc. There
happens to be nothing in there at all.
I know this fix is easy, but I have not run across anything like this myself in
my time with linux.

mkdir /mnt/arch
mount /dev/sda3 /mnt/arch/
cd /mnt/arch
mount -t proc proc proc
mount -t sysfs sys sys
mount -o bind /dev/ dev/
mount /dev/sda1 boot/
cp -L /etc/resolv.conf etc/resolv.conf

chroot . /bin/bash  <<<<< this is giving me the awk, gawk etc not existent errors

source /etc/profile
exit
umount proc sys dev boot
cd ..
umount /mnt/arch
reboot

Ideas as to what I am doing wrong? I run the lts Arch linux kernel instead of
linux one.
mkinitcpio -p linux-lts   says there are no config files found in the /etc
directory at all.

gk

Offline

#8 2012-06-04 20:45:57

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Trouble with booting system after upgrade udev=>systemd

The only thing missing from the Wiki is "mount -t devpts pts dev/pts/".


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#9 2012-06-05 00:50:42

alekgr
Member
From: dallas Texas
Registered: 2012-03-22
Posts: 7

Re: Trouble with booting system after upgrade udev=>systemd

Now after a 20 times of typing root on login getting /bin/login: error while loading shared libraries: libpam.so.0: cannot open shared file: No such file or directory INIT: ld "c1" respawing too fast: disabled for 5 minutes

Offline

#10 2012-06-05 13:04:41

ImNtReal
Member
Registered: 2011-09-26
Posts: 17

Re: Trouble with booting system after upgrade udev=>systemd

I'm not sure if this is the same issue I had, but do any of you experiencing the problem mount your / and /boot using labels to identify the partitions?  If so, either the switch to systemd-tools, or the update to device mapper is causing this:

#ls /dev/disk/by-label/
\x2f  \x2fboot  swap

I'm not positive how it looked before, but prior to that upgrade, they mounted with LABEL=/ and LABEL=/boot.  After, I switched to UUID, and all is well.

Offline

#11 2012-06-05 13:33:12

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Trouble with booting system after upgrade udev=>systemd

@ImNtReal

FWIW, I have the latest systemd and dm and use labels with no issues.  Maybe it had to do with the '/' in your labels.

$ ls /dev/disk/by-label/
arch  boot  data  home  lvbucket  recover  swap1  var

But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#12 2012-06-05 15:22:03

alekgr
Member
From: dallas Texas
Registered: 2012-03-22
Posts: 7

Re: Trouble with booting system after upgrade udev=>systemd

Yea.. I use uuid for my mounted drives

Offline

#13 2012-06-05 15:24:33

alekgr
Member
From: dallas Texas
Registered: 2012-03-22
Posts: 7

Re: Trouble with booting system after upgrade udev=>systemd

Also I have system rescued and chrooted and able to see the libpam.so.0 in folder. I have a feeling maybe it something to do with initramfs

Offline

#14 2012-06-05 15:39:26

ImNtReal
Member
Registered: 2011-09-26
Posts: 17

Re: Trouble with booting system after upgrade udev=>systemd

alphaniner wrote:

@ImNtReal

FWIW, I have the latest systemd and dm and use labels with no issues.  Maybe it had to do with the '/' in your labels.

I think it does.  It looks like / may have changed into \x2f.  Unfortunately, I can't verify that they didn't look that way prior to the upgrade.  Also, I'm not positive which package would have made the change.  I just wanted to offer up the tidbit in case anyone else found themselves in the same position.

Offline

#15 2012-06-08 19:46:15

gbrunoro
Member
From: Belo Horizonte, Brasil
Registered: 2007-04-04
Posts: 55

Re: Trouble with booting system after upgrade udev=>systemd

nnihitek wrote:

Downgrade udev (to 182-2) and mkinitcpio (to 0.8.8-1) fixing problem at now, but it's only workaround (ex: xorg-* also requires downgrade to working)

Had the same problem as OP here. I've already created a new boot image after to downgrading udev and mkinitcpio, but I'm still unable to boot.

Offline

#16 2012-06-08 20:21:06

nnihitek
Member
Registered: 2012-06-02
Posts: 3

Re: Trouble with booting system after upgrade udev=>systemd

crab wrote:

This may or may not be related... but I saw this message just now during an upgrade:

(121/168) upgrading mkinitcpio                     [###################] 100%
==> If your /usr is on a separate partition, you must add the "usr" hook
    to /etc/mkinitcpio.conf and regenerate your images before rebooting

And am wondering what the message means by if /usr is on a separate partition - separate partition to what?  /boot? / ?
I have my /usr partition in the same partition as /  (but /boot is in a different partition)

Logic tells me I'm safe (haven't rebooted yet), as / is "master", and anything else is a separate partition, and I have /usr on the same partition as /.

Do you guys have separate /usr and/or /boot partitions?  As stated in first sentence this may not be related, but looks important...

Thank you. This solved my problem few days ago (usr to HOOKS - i have /usr on separate partition).

Offline

#17 2012-06-08 20:22:20

gbrunoro
Member
From: Belo Horizonte, Brasil
Registered: 2007-04-04
Posts: 55

Re: Trouble with booting system after upgrade udev=>systemd

update: after downgrading a lot of packages to arbitrary lower versions, the system seems to be working with some broken libs.

Offline

#18 2012-06-11 22:02:45

mrkurtz
Member
Registered: 2012-01-13
Posts: 2

Re: Trouble with booting system after upgrade udev=>systemd

same issue here, turned out the mkinitcpio /usr hook was the culprit. not sure how many upgrades since we were required to add the /usr hook the first time, but, somehow in a very recent upgrade, the /usr hook went away. seems strange that given all the upgrades between then and now that have gone off without a problem, this recent one caused issues.

i went through and added the hook back, rebuilt the image, and everything's up and running no problem.

Offline

#19 2012-06-12 20:08:18

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 245
Website

Re: Trouble with booting system after upgrade udev=>systemd

mrkurtz wrote:

same issue here, turned out the mkinitcpio /usr hook was the culprit. not sure how many upgrades since we were required to add the /usr hook the first time, but, somehow in a very recent upgrade, the /usr hook went away. seems strange that given all the upgrades between then and now that have gone off without a problem, this recent one caused issues.

i went through and added the hook back, rebuilt the image, and everything's up and running no problem.

I experienced exactly what was described in OP. I can not login anymore after a huge upgrade (15/05-12/06).
My /usr and /boot are not on same partition than /.

So I understand I must add hook and rebuilt an image. As I am far from being an expert, may you tell me how you proceed? I guess I must boot from a live cd, right? Then, what are the main steps? I dual boot with Ubuntu, can I do anything from this distro?

TY for your help.

Offline

#20 2012-06-13 10:23:12

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 245
Website

Re: Trouble with booting system after upgrade udev=>systemd

after reading all the posts and trying to figure out why I couldn't login, I went to the conclusion my filesystem was not mounted. As I have /usr on a separate partition, I found too that adding "usr shutdwon" in the /etc/mkinitcpio.conf, then rebuilding the image

$mkinitcpio -p linux

when chrooting with a live CD solved my issue.

Thank you for your hints. Maybe can we mark this thread as SOLVED as it seems this workaround is a clean and working solution to this issue after upgrading to systemd for users with a separate /usr ?

Last edited by gabx (2012-06-14 20:56:46)

Offline

#21 2012-06-14 17:07:28

gbrunoro
Member
From: Belo Horizonte, Brasil
Registered: 2007-04-04
Posts: 55

Re: Trouble with booting system after upgrade udev=>systemd

indeed, updating mkinitcpio and rebuilding the boot image solved it for me too.

Offline

Board footer

Powered by FluxBB