:: [Dng] WIP: mdev packaging
Top Page
Delete this message
Reply to this message
Author: Isaac Dunham
Date:  
To: Luke Kenneth Casson Leighton
CC: dng
Old-Topics: [Dng] successfully manually removing systemd and libsystemd0 from debian and still maintaining a working desktop
Subject: [Dng] WIP: mdev packaging
On Sun, Feb 15, 2015 at 04:27:55PM +0000, Luke Kenneth Casson Leighton wrote:
> http://lkcl.net/reports/removing_systemd_from_debian/


Somehow, this inspired me to poke at packaging mdev.
I don't have a website or apt repository atm, so I can't provide a deb.
But here's the source in git:

https://github.com/idunham/mdev

To build it, use "dpkg-buildpackage -b".

STATUS:
This provides hooks for mkinitramfs, and *can* create a working initrd.
There's an init script that's shipped along with it, and a fairly close
to standard Debian layout for /dev.
...At least, the result allows *me* to boot (/ on a SATA partition, no
separate mountpoints). Your mileage may vary; I would suggest *not* trying
this on your main install.
I have not tested this with dracut; it may well not work

There are helpers to create /dev/disk/by-{label,uuid}/ and other symlinks,
already set up.

It provides udev, because that was the only way to defeat the dependency
chain and make it work.

How to use:
If you don't have / on an unencrypted local partition, this may not work.
Also, *don't* do this on a production system!
Conventions: Lines that begin with a non-'#' should be done as non-root;
'^# ' should be done as root, '^##' are comments.

If you have X, you need to follow lkcl's guide to setting X up to work
without udev; then disable any scripts/configuration that autostarts
X11 for the first boot.
Re-enable it once you know it works.

git clone git://github.com/idunham/mdev
cd mdev
dpkg-buildpackage -b
cd ..
## busybox or busybox-static should work.
# apt-get install busybox
# dpkg -i mdev_0.6-1_all.deb
# apt-get purge udev
## this may not be needed (do it if you didn't get a new initramfs
## after purging udev)
# update-initramfs -u


And reboot.

HTH,
Isaac Dunham