mirror of
https://github.com/troglobit/finit.git
synced 2026-11-10 16:31:21 +00:00
Debian/README: Update, modernize, simplify, and clarify
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
92616d2ac0
commit
b37ea48e5d
1 file changed
+14
-23
+14
-23
@@ -3,18 +3,10 @@ HowTo: Finit on Debian GNU/Linux
|
|||||||
|
|
||||||
HowTo use Finit to boot a Debian GNU/Linux system. It is assumed that
|
HowTo use Finit to boot a Debian GNU/Linux system. It is assumed that
|
||||||
the user has already installed a compiler, C library header files, and
|
the user has already installed a compiler, C library header files, and
|
||||||
other tools needed to build a GNU configure based project.
|
other tools needed to build a GNU configure based project. I.e., at
|
||||||
|
the very least:
|
||||||
|
|
||||||
Also, Finit has only been verified to work with the Debian *Server* ed.
|
root@debian:~# apt install build-essential
|
||||||
I.e., during install — skip GNOME and other X stuff to get a plain and
|
|
||||||
usable Debian server install, which we can add X-Window to later :-)
|
|
||||||
|
|
||||||
Now, I started off by replacing systemd from the base install with the
|
|
||||||
old SysV init, using [this HowTo][1], you may not need to do that, but
|
|
||||||
for me it was easier — and also a great rebuttal to all the systemd
|
|
||||||
haters out there (yeah, even though I speak for the alternative PID 1
|
|
||||||
movement I don't hate systemd :P) it is possible to still run Debian
|
|
||||||
without systemd! Anyway, this text was based on that experience.
|
|
||||||
|
|
||||||
Like the [Alpine HowTo](../alpine/), you need to install [libuEv][] and
|
Like the [Alpine HowTo](../alpine/), you need to install [libuEv][] and
|
||||||
[libite][], but since this is Debian — which takes infinite care of its
|
[libite][], but since this is Debian — which takes infinite care of its
|
||||||
@@ -23,29 +15,28 @@ it installed so it can locate the uEv and lite libraries.
|
|||||||
|
|
||||||
> With Debian everything just works!™
|
> With Debian everything just works!™
|
||||||
|
|
||||||
... just make sure to
|
... just make sure to install the following, so `ifup` and other basic
|
||||||
|
tools pre-systemd work as intended.
|
||||||
|
|
||||||
root@debian:~# apt install initscripts console-setup
|
root@debian:~# apt install initscripts console-setup
|
||||||
|
|
||||||
The following build and install script can be used to configure, build,
|
The following script can then be used to configure, build, install and
|
||||||
install and set up your system to run Finit:
|
set up your system to run Finit:
|
||||||
|
|
||||||
user@debian:~/finit$ contrib/debian/build.sh
|
user@debian:~/finit$ contrib/debian/build.sh
|
||||||
|
|
||||||
Since `/sbin/init` already exists on your system the script creates
|
However, since `/sbin/init` already exists on your system the script
|
||||||
another entry in your GRUB config, in `/etc/grub.d/40_custom`, where
|
creates another entry in your GRUB config, in `/etc/grub.d/40_custom`,
|
||||||
`init=/sbin/finit` is added to your kernel line. You could of course
|
where `init=/sbin/finit` is added to your kernel line.
|
||||||
also change the `/sbin/init` symlink and uninstall systemd/SysV init if
|
|
||||||
everything works fine, but that's up to you.
|
|
||||||
|
|
||||||
Before rebooting, read up on [/etc/finit.conf](finit.conf) and notice
|
Before rebooting, read up on [/etc/finit.conf](finit.conf) and the new
|
||||||
how `/etc/start.d/` and `/etc/rc.local` can be used to extend the boot
|
`/etc/finit.d/*.conf` work. The build + install script above provides
|
||||||
with simpler setup tasks on your system — see the docu for details.
|
the bare necessities, enabling a few `.conf` files. See `initctl list`
|
||||||
|
after boot for a list of enabled and available services.
|
||||||
|
|
||||||
Have fun!
|
Have fun!
|
||||||
/Joachim ツ
|
/Joachim ツ
|
||||||
|
|
||||||
[1]: http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_a_Debian_jessie/sid_installation
|
|
||||||
[libuEv]: https://github.com/troglobit/libuev
|
[libuEv]: https://github.com/troglobit/libuev
|
||||||
[libite]: https://github.com/troglobit/libite
|
[libite]: https://github.com/troglobit/libite
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user