Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

A rolling disk gathers no MOS.


computers / alt.os.linux.slackware / Re: slackware on zroot

SubjectAuthor
* slackware on zroottom
`* Re: slackware on zrootHenrik Carlqvist
 `* Re: slackware on zrootJavier
  `- Re: slackware on zroottom

1
slackware on zroot

<20211009215121.78fdf55f@viridi>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=719&group=alt.os.linux.slackware#719

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tom@invalid.tld (tom)
Newsgroups: alt.os.linux.slackware
Subject: slackware on zroot
Date: Sat, 9 Oct 2021 21:51:21 -0700
Organization: none
Lines: 26
Message-ID: <20211009215121.78fdf55f@viridi>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="5cfaa9772249f8accc7f1aa3d6088066";
logging-data="27582"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LCPV+3KyDuA04Pf5byu5p"
Cancel-Lock: sha1:x7lBzbT81u2+r4qbMM0AK2wqfWw=
X-Newsreader: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
 by: tom - Sun, 10 Oct 2021 04:51 UTC

How does one install slackware onto a zfs boot environment? I just have
one storage pool on my computer and use that, instead of individual
drives. Is using slackware with zfs something I'm going to have to
fight the system over or will it work without hassle?

also, how does one install slackware from a chroot and minirootfs? The
typical slackware install requires the use of a setup tool, which is
not what i want and it requires setting up partitions, something I
don't need or want since I use zfs datasets.

I'd also like to install slackware from my already working and booted
Gentoo system via chrooting into the zboote.

for those unaware, this is how the boot works:

EFI->grub2.efi

grub2 reads and loads kernel, initramfs, and cpu microcode from a ext2
filesystem which contains zfs kernel module

linux loads into initramfs, loads zfs, and attempts to attach storage
pool. Ounce storage pool is attached a boot environment is specified to
mount as the root (ZFS=tank/ROOT/gentoo) or (ZFS=tank/ROOT/slackware
perhaps?), /sbin/init is execed, init loads other datasets in place and
system goes multiuser mode.

Re: slackware on zroot

<sjue5t$val$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=720&group=alt.os.linux.slackware#720

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Henrik.Carlqvist@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: slackware on zroot
Date: Sun, 10 Oct 2021 10:10:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <sjue5t$val$1@dont-email.me>
References: <20211009215121.78fdf55f@viridi>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Oct 2021 10:10:05 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c012fd0f48d0c0a0481231a4d84b3382";
logging-data="32085"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+CuJ8LHsCz6Vd096vrpyhM"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:enHqwdbz8QvHbF5Jui6SPGIcFFE=
 by: Henrik Carlqvist - Sun, 10 Oct 2021 10:10 UTC

On Sat, 09 Oct 2021 21:51:21 -0700, tom wrote:
> How does one install slackware onto a zfs boot environment?

Sorry, I have no experience from zfs, but I have done some custimizations
of the Slackware installation scripts.

> Is using slackware with zfs something I'm going to have to fight
> the system over or will it work without hassle?

Most of all you will need a compiled kernel which supports zfs. Life will
probably be easier if you choose a kernel version and configuration which
closely looks like the kernel that came with Slackware.
> also, how does one install slackware from a chroot and minirootfs?

If I remember right, the Slackware install scripts does not even require
you to chroot, they simply unpack tar files (the Slackware packages) in
the directory you point them to.

> The typical slackware install requires the use of a setup tool, which
> is not what i want and it requires setting up partitions, something I
> don't need or want since I use zfs datasets.

The "setup tool" is simply a script running a number of other scripts.
There is nothing that requires you to run those scripts during
installation, you might just as well do all the steps by hand. Basically
what those scripts do is:

1) Selects a keyboard layout for the installation
2) Selects an mountes some source for the Slackware packages
3) Selects destination partition(s) to be mounted and create an fstab
for the installed system
4) Unpacks all packages
5) Runs the scripts which the packages has placed in /var/log/setup
to let you configure stuff like running services and bootloaders.

In my custom installations I don't do those steps manually, instead I
have modified the scripts which lives in /usr/lib/setup in the initrd.img
on the installation media. I have also written some custom packages which
replaces some of the scripts other packages place in /var/log/setup. The
main purpose of my customization has been to make a quick "no questions
asked", "fire and forget" installation.

regards Henrik

Re: slackware on zroot

<MuWdnS2y6M8QeP_8nZ2dnUU78eHNnZ2d@brightview.co.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=722&group=alt.os.linux.slackware#722

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!buffer1.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 10 Oct 2021 08:07:25 -0500
From: invalid@invalid.invalid (Javier)
Subject: Re: slackware on zroot
Newsgroups: alt.os.linux.slackware
References: <20211009215121.78fdf55f@viridi> <sjue5t$val$1@dont-email.me>
Message-ID: <MuWdnS2y6M8QeP_8nZ2dnUU78eHNnZ2d@brightview.co.uk>
Date: Sun, 10 Oct 2021 08:07:25 -0500
Lines: 81
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-p7RI1kQLaTlWxKWzFqiQnW+BjWDFIwSl3w8aixsuPr5lpJL90ivre9yrXXCIJdRBNc05cMjyc7ie2La!YCYh7zfYZaLjDPcMZKP7Mq5tlF6+82N2zKfzX8gAgEu6LUwlqOvA2Zbzya2R4pInOk5kziTmbW+U!23ys84O5Udjlm/t/Z+YlRKipFMrt
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3543
 by: Javier - Sun, 10 Oct 2021 13:07 UTC

Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote:
> On Sat, 09 Oct 2021 21:51:21 -0700, tom wrote:
>> also, how does one install slackware from a chroot and minirootfs?
>
> If I remember right, the Slackware install scripts does not even require
> you to chroot, they simply unpack tar files (the Slackware packages) in
> the directory you point them to.

You are right, Slackware does not need chroot to install.
I install it with an script unpacking files without any chroot.

This is the script I use myself. It only lacks the installation
of the bootloader (LILO or other).

Just check again the list of package groups may have grown larger in 15.0.
I have not tried 15.0, but Iguess the compression format continues to be txz.

#!/usr/bin/env bash

mounted_root_dir=/new_slack
TARGET_boot=/dev/sda1
TARGET_root=/dev/sda2

mkdir -p ${mounted_root_dir}
mount -t ext4 ${TARGET_root} ${mounted_root_dir}
mkdir -p ${mounted_root_dir}/boot
mount -t ext3 ${TARGET_boot} ${mounted_root_dir}/boot

slack_mirror="https://mirrors.slackware.com/slackware"
slack_arch=slackware64
slack_ver=15.0
slack_pkg_dir=/tmp/slack_download/pkgs
slack_kernel_dir=/tmp/slack_download/kernels

slack_pkgs="${slack_arch}/{a,ap,d,e,f,l,n,t,tcl,x,xap,y}
extra/bash-completion
extra/bittornado
extra/bittorrent
extra/dip-3.3.7p
extra/wicd
extra/xf86-video-fbdev
extra/getty-ps
extra/xv
extra/xfractint
pasture" # firefox, thunderbird, ampd
# kde,kdei,xfce, y (bsdgames), k (kernel src)

mkdir -p ${slack_pkg_dir}
pushd ${slack_pkg_dir}

for i in ${slack_pkgs}; do
wget -m --no-parent --no-host-directories \
${slack_mirror}/${slack_arch}-${slack_ver}/${i}
done
popd

mkdir -p ${slack_kernel_dir}
pushd ${slack_kernel_dir}
wget -m --no-parent \
${slack_mirror}/${slack_arch}-${slack_ver}/${slack_arch}/kernels
popd

cp ${slack_mirror}/${slack_arch}-${slack_ver}/${slack_arch}/kernels/huge.s/bzImage \
${mounted_root_dir}/boot/SLACK_HUGE_bzImage
cp ${slack_mirror}/${slack_arch}-${slack_ver}/${slack_arch}/kernels/huge.s/System.map.gz \
${mounted_root_dir}/boot/SLACK_HUGE_System.map.gz

pkgtools=$(find ${slack_pkg_dir} | grep 'pkgtools-.*z$')

# ${slack_mirror}/${slack_arch}-${slack_ver}/${slack_arch}/a/pkgtools-*.txz
grep -q 'txz$' <<< ${pkgtools_txz}
pushd ${slack_pkg_dir}
tar xJf ${pkgtools_txz}
# ${slack_pkg_dir}/sbin/installpkg
popd

find ${slack_pkg_dir} | grep 't.?z$' | xargs -n 1 \
${slack_pkg_dir}/sbin/installpkg --root ${mounted_root_dir}

Re: slackware on zroot

<20211015202050.68c1462e@viridi>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=728&group=alt.os.linux.slackware#728

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tom@invalid.tld (tom)
Newsgroups: alt.os.linux.slackware
Subject: Re: slackware on zroot
Date: Fri, 15 Oct 2021 20:20:50 -0700
Organization: none
Lines: 3
Message-ID: <20211015202050.68c1462e@viridi>
References: <20211009215121.78fdf55f@viridi>
<sjue5t$val$1@dont-email.me>
<MuWdnS2y6M8QeP_8nZ2dnUU78eHNnZ2d@brightview.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="a4811f510e4ed6527c7622863fd12e9d";
logging-data="32441"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Itb0XS8XY0IanNOEorYbN"
Cancel-Lock: sha1:33fpTeB1UAzdl8IYz+pXIFC5k8U=
X-Newsreader: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
 by: tom - Sat, 16 Oct 2021 03:20 UTC

Thank you all, especially Javier with your script that pointed me in
the right direction.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor