:: Re: [DNG] bummer
Page principale
Supprimer ce message
Répondre à ce message
Auteur: ibid.ag
Date:  
À: Steve Litt
CC: dng
Sujet: Re: [DNG] bummer
On Mon, Jul 06, 2015 at 03:17:28PM -0400, Steve Litt wrote:
> On Mon, 6 Jul 2015 14:38:19 -0400
> Clarke Sideroad <clarke.sideroad@???> wrote:
>
> > On 07/06/2015 01:39 PM, Klaus Fuerstberger wrote:
> > > Debian wheezy ISO images still exist:
> > > https://www.debian.org/releases/oldstable/debian-installer/
> > >
> > > Also the Debian wheezy repositorys:
> > > deb http://ftp.debian.org/debian/ wheezy main contrib non-free
> > > deb http://security.debian.org/ wheezy/updates main contrib non-free
> > > deb http://ftp.debian.org/debian/ wheezy-updates main
> > >
> > > So as long as Devuan is in alpha/beta state you can keep your wheezy
> > > installation or install wheezy.
> > >
> > > Thanks for the Devuan developers for this idea and the work in
> > > maintaining this systemd free distribution.
> > >
> > > Klaus
> > >
> > >
> > Be careful with a fresh Wheezy install and updates, it will install
> > systemd and related baggage if you blink at the wrong time.
> > I tried to travel back in time a couple of months ago and was
> > shocked by what unfolded on my machine.
> >
> > Clarke
>
> I remember that, Clarke, it was bad.
>
> Perhaps until we get a whole distro defending us against the kudzu like
> growth of systemd's roots, perhaps the best thing is simply to install


Any musl-based distro won't have systemd; it doesn't build, and isn't
expected to work either. (Though uselessd-systemd minus the contagion-
will work, and is in the Alpine repos.)

> Jessie and then solder bridge it with a real init like runit, s6,
> Epoch, or Suckless Init plus daemontools-encore plus LittKit. Doing
> this leaves the systemd software on your disk, but at least for the
> purpose of PID1 and process management, systemd software never gets run.
>
> I've done this a couple times before, including on CentOS. It's not
> easy. Not only do you need to write your own run scripts or Epoch defs,
> but you need to address things like populating /dev, /sys, and the
> like.


A couple days ago I wrote a small "quick rc" that does that, but for a
different reason: I wanted a quick way to set things up more completely
when I boot with "noinitrd init=/bin/sh".
(I've probably written this sort of thing at least 4 times before.)

General flavor:
# beforehand, not in the script
ln -s /bin/busybox /sbin/mdev

#BEGIN quickrc
mount -t proc proc /proc
mount -t sysfs sys /sys
# Set up /dev. Usually it's already mounted, but this does everything.
mount -t devtmpfs dev /dev
mkdir -p /dev/pts /dev/shm
# On Jessie, /run{,/shm} are tmpfs and /dev/shm is a symlink to /run/shm
mount -t tmpfs shm /dev/shm
mount -t devpts pts /dev/pts
# for ifup/wpa_supplicant:
mkdir -p /dev/shm/network
echo "/sbin/mdev" > /proc/sys/kernel/hotplug
mdev -s
grep ^[^#][^#]*$ /etc/modules | { while read MOD; do modprobe $MOD; done; }
find /sys/devices -name modalias | xargs sort -u | xargs modprobe -abq
#END quickrc

Services you probably want if they're installed:
/etc/init.d/oss start
/etc/init.d/thinkfan start
/etc/init.d/networking start =~ ifup -a

/etc/init.d/mountall*


HTH,
Isaac