Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] how to solve udev block with systemd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Wed Aug 27, 2014 3:29 pm    Post subject: [solved] how to solve udev block with systemd Reply with quote

I'm on a fresh installation, and I'm follow this wiki http://wiki.gentoo.org/wiki/Systemd

but I can't solve the problem of the udev block, I don't understand what to do...

I tried to unmerge udev but util-linux failed to compile because tell that libudev is required but not found.

Any help is appreciated, thanks in advance
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***


Last edited by luna80 on Thu Aug 28, 2014 6:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 409

PostPosted: Wed Aug 27, 2014 3:56 pm    Post subject: Reply with quote

Hi luna80

you may find the instructions in this section of my EFI Gentoo End to End Install guide on the wiki useful.

To summarize here, the two-stage install of sys-apps/dbus/ and sys-apps/systemd is no longer necessary; the circular dependency on sys-fs/udev-init-scripts-25 was broken by moving it to PDEPEND, as of revision 1.9 of the systemd-208-r2.ebuild.

As such, once you have set your profile correctly, you should be able simply to:

Code:
(chroot) livecd / # emerge --ask --verbose --deep --with-bdeps=y --newuse --update @world


And it'll sort the blocks out for you.
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Wed Aug 27, 2014 6:48 pm    Post subject: Reply with quote

now I can compile without blocks, when it ends I let you know if I found others problem


thanks a lot sakaki!!! :D
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Thu Aug 28, 2014 4:41 am    Post subject: Reply with quote

well, I ends to compile without errors, but...

now after grub start I have a black screen with only the string "loading gentoo-3.14.14" and nothing is loaded
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 409

PostPosted: Thu Aug 28, 2014 9:17 am    Post subject: Reply with quote

Well, it built, so you're making progress ^-^

However, per the wiki page you originally quoted, to get systemd to actually function, there are a few other things you need to do (in your chroot environment - you'll need first to reboot your system using the Gentoo minimal install image, then re-enter the chroot):

  • ensure the appropriate options are set in your kernel, and rebuild it if not (per these instructions)
  • make sure /etc/mtab is a link to /proc/self/mounts (per these instructions)
  • ensure that the kernel hands off to the correct init program (set init=/usr/lib/systemd/systemd as a command line parameter in grub), per these instructions (I assume you are not building an EFI system? Or one with any LVM/LUKS/initramfs? If any of that is not the case, please advise)


For the last of these, if you select the item on the grub menu and press "e" you can edit the command line to test it out. Remove any "quiet" from the line also, so you can see some debug output.

Once you have systemd booted, make sure to set up its configuration. I have some info on that here; see also here.

Let me know how you get on!
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Thu Aug 28, 2014 1:09 pm    Post subject: Reply with quote

I don't found what I'm doing wrong, I think is all ok your steps

the bigger problem is that I don't have the possibility to check for errors, at the reboot it appear the grub menu and after only the black screen with the sentence

Loading Linux 3.14.14-gentoo ...

and nothing else
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 409

PostPosted: Thu Aug 28, 2014 1:40 pm    Post subject: Reply with quote

If you hit 'e' when you select the boot option in grub, what kernel command line does it show?
(it may be a modesetting problem)

And just to confirm, this isn't an EFI install, it that true? (Because otherwise, it might be a problem with secure boot, see this post for example...)
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Thu Aug 28, 2014 1:48 pm    Post subject: Reply with quote

this is the output by pressing e

http://i61.tinypic.com/2f03sqg.png


no, is not an efi install
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 409

PostPosted: Thu Aug 28, 2014 3:17 pm    Post subject: Reply with quote

Have you tried appending nomodeset to the end of the 'linux' line (from the 'e' screen in grub), then booting it with ctrl-x?
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Thu Aug 28, 2014 3:22 pm    Post subject: Reply with quote

I tried now, no changes :(
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 409

PostPosted: Thu Aug 28, 2014 3:40 pm    Post subject: Reply with quote

What happens if you try it with
Code:
set gfxpayload=text

instead of
Code:
set gfxpayload=keep

Using the same 'hit e then edit then ctrl-x' approach?
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Thu Aug 28, 2014 4:20 pm    Post subject: Reply with quote

it works!! :D

now I tried to launch (as suggested)

Code:
systemctl default


but it tell EXT4-fs (sd4): unable to read superblock and Failed to start default.target: Transaction is destructive
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 409

PostPosted: Thu Aug 28, 2014 5:19 pm    Post subject: Reply with quote

OK, so it looks like you are in systemd's emergency mode: usually that's because something in /etc/fstab didn't mount or failed an fsck (which tallies with the error message you reported).

See for example this post.

I don't know your partition layout, but at a rough guess, since it is complaining about EXT4-fs (sd4), you may have written sd4 rather than sda4 in your /etc/fstab somewhere? If so, change this (use vi or nano as root, from the emergency mode) and try "systemctl default" again. Then configure systemd as described in my earlier post.

PS Don't forget to add any changes to grub to your grub config once happy with them (see this Archlinux wiki article for some pointers). Otherwise you'll have to do the 'e - edit - ctrl-x' thing each time you boot.
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Thu Aug 28, 2014 5:46 pm    Post subject: Reply with quote

I'm so stupid :? in the fstab file I put sda4 rather than sda5, fixed this and set to text the GRUB_GFXPAYLOAD_LINUX configuration now all works!

thanks a lot sakaki, you helped me very much, you're very kindly!!
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 409

PostPosted: Thu Aug 28, 2014 6:48 pm    Post subject: Reply with quote

You're welcome! Glad you got it working ^-^
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
gol70
n00b
n00b


Joined: 15 Oct 2014
Posts: 11

PostPosted: Sun Oct 19, 2014 2:17 am    Post subject: Reply with quote

Sakaki wrote:
you may find the instructions in this section of my EFI Gentoo End to End Install guide on the wiki useful.
/.../
As such, once you have set your profile correctly, you should be able simply to:
Code:
(chroot) livecd / # emerge --ask --verbose --deep --with-bdeps=y --newuse --update @world

And it'll sort the blocks out for you.

The mentioned procedure currently is not working properly.
I performed all steps according to "EFI_Gentoo_End_to_End_Install" and i'm stuck on "Setting the Target Profile, and Updating".
When I'm trying emerge /.. @world (after systemd profile selection) the blocking deadlock appears:

[blocks B ] sys-apps/systemd ("sys-apps/systemd" is blocking sys-fs/udev-216)
[blocks B ] sys-apps/gentoo-systemd-integration ("sys-apps/gentoo-systemd-integration" is blocking sys-fs/udev-216)
[blocks B ] sys-fs/udev ("sys-fs/udev" is blocking sys-apps/gentoo-systemd-integration-4, sys-apps/systemd-215-r3)

I'm googling few days and I tried all founded "solutions" including:
- putting sys-fs/udev and sys-fs/gudev to package.mask
- emerge --deselect sys-fs/udev

without success :?

Please help!
_________________
best regards
Gregory
Back to top
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 409

PostPosted: Wed Nov 05, 2014 7:12 pm    Post subject: Reply with quote

Hi Gregory,

apologies, I missed your post, as it was appended to a thread marked 'solved'.

Did you manage to resolve the problem?
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 409

PostPosted: Fri Nov 07, 2014 8:49 pm    Post subject: Reply with quote

Ok, so just tried this out: doing the post-profile-set @world upgrade on a fresh install (with all previous steps carried out per the tutorial's instructions) shows me:
Code:
(chroot) livecd / # emerge --ask --verbose --deep --with-bdeps=y --newuse --update @world
<...>
[blocks b      ] sys-fs/udev ("sys-fs/udev" is blocking sys-apps/gentoo-systemd-integration-4, sys-apps/systemd-215-r3)
[blocks b      ] sys-apps/systemd ("sys-apps/systemd" is blocking sys-fs/udev-216)
[blocks b      ] sys-apps/gentoo-systemd-integration ("sys-apps/gentoo-systemd-integration" is blocking sys-fs/udev-216)
<...>
Total: 175 packages (154 new, 3 in new slots, 18 reinstalls, 1 uninstall), Size of downloads: 581,663 kB
Conflict: 3 blocks

Would you like to merge these packages? [Yes/No] y

after which, the process proceeds successfully to completion. So it seems the unresolved blocks (capital 'B's in your emerge output) can now be automatically resolved by emerge again (hence they are small 'b's in my output, above), which is back as it used to be (assuming the problem wasn't caused by some other difference in your configuration).

I haven't chased down which ebuild or ebuilds were changed to cause (and then fix) this issue though.
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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