Re: [DNG] [OT] Re: Embedded devuan (was Re: Devuan with usr merge?)

2021-11-18 Thread Didier Kryn
Le 18/11/2021 à 03:07, onefang a écrit :
> Um, initramfs already uses busybox.  Or it can, it's an option in
> initramfs-tools.

    Initramfs can use what you want to provide what is bundled by Debian
in binutils and util-linux, + a shell. Busybox provides you with all
that, and much more, ready-made. Aboriginal was a distro in which all of
these applications was actually provided by busybox - I didn't look
recently.

    The initramfs typically contains a script named /sbin/init, which is
the default application launched by the kernel when it has finished
booting. If the initramfs is based on busybox, then this script is
interpreted by one of the shells provided by busybox (or it could be
busybox's init), and all the userspace applications are also provided by
busybox.

    YOU DON'T NEED AN INITRAMFS TO DO THAT. THIS INIT SEQUENCE CAN BE
DONE OUT OF A DISK PARTITION IF THE KERNEL IS ABLE TO MOUNT IT. The
advantage of such a set up is that you can modify your script from
another OS mounting this partition.

    The application to launch by the kernel is given as an argument to
the kernel when invoked by the bootloader (grub, uboot). In case of a
bootloader firmware which lacks the possibility to provide arguments to
the kernel, it is possible to define the default init when configuring
the kernel. Just to experiment with busybox, give to the kernel the
argument init="/bin/busybox ash" . After boot, you get the prompt; 
first invoke 'busybox install'; export
PATH='/bin:/sbin:/usr/bin:/usr/sbin' (depending how you have prepared
your boot partition and configured your busybox) and then 'mount -t proc
proc /proc', and experiment... By default, the kernel will invoke
/sbin/init. If you are running out of a partition and not initramfs, you
need to invoke 'busybox install' only once and this can be done in
advance by chrooting into the partition. There are many possibities ...
up to your imagination.

--     Didier


___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [OT] Re: Embedded devuan (was Re: Devuan with usr merge?)

2021-11-17 Thread onefang
On 2021-11-17 19:57:08, Steve Litt wrote:
> Florian Zieboll via Dng said on Wed, 17 Nov 2021 23:37:44 +0100
> 
> >Inspired by earlier mails in the original "usr merge"-thread, an
> >experiment I had been thinking of for a sleepless night was installing
> >busybox in an initramfs. I suspect Steve facepalming, but be assured:
> >This is canceled now. 
> 
> I will never, ever, EVER facepalm over somebody doing DIY
> experimentation. Now, when you speak of initramfs or of busybox, you
> speak with authority. You've taken a step forward from the dwobes
> parroting the nonsense mouthed by others in their party. 
> 
> I was even hoping that with Busybox inside an initramfs, you'd have
> created an "initramfs lite" that's simple to understand, debug and use.
> In other words, I was hoping you'd prove me wrong :-). It has
> consistently been people doing what you did that caused me to change my
> mind.

Um, initramfs already uses busybox.  Or it can, it's an option in
initramfs-tools.

-- 
A big old stinking pile of genius that no one wants
coz there are too many silver coated monkeys in the world.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [OT] Re: Embedded devuan (was Re: Devuan with usr merge?)

2021-11-17 Thread Steve Litt
Florian Zieboll via Dng said on Wed, 17 Nov 2021 23:37:44 +0100

>Inspired by earlier mails in the original "usr merge"-thread, an
>experiment I had been thinking of for a sleepless night was installing
>busybox in an initramfs. I suspect Steve facepalming, but be assured:
>This is canceled now. 

I will never, ever, EVER facepalm over somebody doing DIY
experimentation. Now, when you speak of initramfs or of busybox, you
speak with authority. You've taken a step forward from the dwobes
parroting the nonsense mouthed by others in their party. 

I was even hoping that with Busybox inside an initramfs, you'd have
created an "initramfs lite" that's simple to understand, debug and use.
In other words, I was hoping you'd prove me wrong :-). It has
consistently been people doing what you did that caused me to change my
mind.

As long as we're on the subject, for those who are new to Devuan
(joined up after maybe June 2015), here's some DIY experimentation I
did that enabled me to authoritatively swat aside nonsense from
PoetterParrots:

http://troubleshooters.com/linux/init/manjaro_experiments.htm 

SteveT

Steve Litt 
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] [OT] Re: Embedded devuan (was Re: Devuan with usr merge?)

2021-11-17 Thread Florian Zieboll via Dng
Earlier in this thread, 
on Tue, 16 Nov 2021 09:29:11 +0100
Didier Kryn  wrote:

>     Of course, if you want to install the distro for another
> architecture, you must use debootstrap --foreign
> 
> (...)
> 
>     Another experiment with great fun is to just install busybox in a
> chroot. 
> 
> (...)
> 
> musl libc


Hello Didier (and all),

thank you very much for your elaborate mail and the interesting
discussion following it - and sorry for my late reply: I'm kind of
absorbed by work and life 'afk' in general. While I am really glad to
have found a job in the public sector (field service for Munich's
communal schools and nurseries), it's somewhat ironic, that one of my
first tasks there was helping to roll back the last remnants of LiMux.
The first time ever, that I replaced a Linux with that unutterable
gimme-an-inch-OS. A noteworthy detail in this context is, how speedy
the network links are getting upgraded now: In some places from slow,
but (until now, rofl) sufficiently functional 1 or 2 Mbit/s connections
with up to four(!) active workstations attached.

Inspired by earlier mails in the original "usr merge"-thread, an
experiment I had been thinking of for a sleepless night was installing
busybox in an initramfs. I suspect Steve facepalming, but be assured:
This is canceled now. Thanks again for all the good input - I'll sure
be back with less off topic mails, when I am back to it!

Libre Grüße,
Florian
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng