all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Adam Faiz <adam.faiz@disroot.org>
To: Andreas Buchter <andreas.buchter4321@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Installation of Sheperd under Linux from Scratch
Date: Tue, 27 Jun 2023 09:14:33 +0800	[thread overview]
Message-ID: <4b7a61ef-8b03-5a8b-3ad2-113c7818ae4b@disroot.org> (raw)
In-Reply-To: <CAFn-QB-x6ZY+m7P8pXE_H6Xt34q+XMPWBfAF5bPFvpng8OHd7Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1417 bytes --]

Hello Andreas,

On 6/22/23 12:56, Andreas Buchter wrote:
> I would like to install/use Shepherd as an init system under LFS (Linux from Scratch) https://www.linuxfromscratch.org <https://www.linuxfromscratch.org>
> No clue what would be required to do that. Could someone give me any hints? Thank you!

First, you need to build the Shepherd from source.

git clone https://git.savannah.gnu.org/git/shepherd.git
cd shepherd
autoreconf -vif

In the README there's instructions on how to configure and build it.

After building, you need to put a shepherd.scm config at /usr/local/etc/shepherd.scm or a different location
specified with the --config=FILE option for the Shepherd.

Here's an example shepherd.scm config:
https://lists.gnu.org/archive/html/guix-devel/2022-01/msg00279.html

I've attached the shepherd-init wrapper script I use to do some initialisation before running shepherd as init.

After that, I added the following to /etc/default/grub to use the Shepherd as the default init system:
GRUB_CMDLINE_LINUX="init=/usr/local/sbin/shepherd-init"


Note that in the future 1.0 release of the Shepherd, the GOOPS interface will be removed and the old configuration format above won't work anymore.
I plan on updating from 0.8.1 to the 0.10.x release so that I can update my config to the nicer format[1] before then.

[1]: https://www.gnu.org/software/shepherd/manual/shepherd.html#Legacy-GOOPS-Interface



[-- Attachment #2: shepherd-init --]
[-- Type: text/plain, Size: 134 bytes --]

#!/bin/sh
SOCKET=/usr/local/var/run/shepherd/socket
mount -o remount,rw /
rm $SOCKET
mkdir /dev/shm
chmod 1777 /dev/shm
exec shepherd

      parent reply	other threads:[~2023-06-27  1:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-22  4:56 Installation of Sheperd under Linux from Scratch Andreas Buchter
2023-06-25 16:04 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2023-06-27  1:14 ` Adam Faiz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4b7a61ef-8b03-5a8b-3ad2-113c7818ae4b@disroot.org \
    --to=adam.faiz@disroot.org \
    --cc=andreas.buchter4321@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.