You are not logged in.

#1 2013-09-19 01:45:36

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

[SOLVED]mkinitcpio systemd and udev hooks

Hi,

The latest systemd upgrade got me into some reading about systemd hook. I have quickly gone over the wiki and the man pages. I was wondering if it safe to add systemd and remove udev from mkinitcpio.conf.

My current mkinitcpio.conf hook list.

HOOKS="base udev autodetect modconf block filesystems keyboard fsck resume"

Remove udev and add systemd.

HOOKS="base systemd autodetect modconf block filesystems keyboard fsck resume"

Thanks.

Last edited by donniezazen (2013-09-19 02:57:48)

Offline

#2 2013-09-19 02:03:34

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: [SOLVED]mkinitcpio systemd and udev hooks

Yes, this is safe.  I have been running with systemd in my initramfs for a few months now, and all is well.  You just have to be careful if you use some of the other hooks as not all of them have been ported yet.  I think that there has already been significant work on this, but I don't think any of it has actually made it into a released version of mkinitpcio.  These would be things like the encrypt hook and maybe the mdadm hook (though you should probably be using mdadm_udev anyway if you need that).

But as far as your setup goes, it should be fine.

Offline

#3 2013-09-19 02:31:02

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,677

Re: [SOLVED]mkinitcpio systemd and udev hooks

The help for the hook still mentions other things may go haywire with it, so I'm steering clear (but I rely on encrypt, lvm2, resume and shutdown - while I could delete resume without much worry, the others I need to work).


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#4 2013-09-19 02:34:45

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: [SOLVED]mkinitcpio systemd and udev hooks

Yeah, in your case cfr, you should stay away from this.

Here is the mailing list discussion about the topic: http://www.mail-archive.com/arch-projec … 03348.html

Offline

#5 2013-09-19 02:57:31

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: [SOLVED]mkinitcpio systemd and udev hooks

Thanks, I just rebooted with systemd hook. I haven't removed base as suggested by the wiki.

@WonderWoofy Do you use base in mkinitcpio or have you removed that too?

Offline

#6 2013-09-19 03:37:21

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: [SOLVED]mkinitcpio systemd and udev hooks

I removed it in my primary initramfs.  But I use a separate mkinitpcio.conf for my fallback. Since I use btrfs, and have had problems in the past (though nothing severe), I have the fallback include all the btrfs tools and the 'base' hook so that I have a minimal filesystem and tools to fix my shit.  So then I just have 'break=premount' in my kernel command line, and I can get to a system with which I can fix my system if necessary.

Offline

#7 2013-09-19 05:22:46

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: [SOLVED]mkinitcpio systemd and udev hooks

@WonderWoofy Thanks.

Offline

Board footer

Powered by FluxBB