[DNG] buster to beowulf

2020-01-16 Thread Hendrik Boom
I'd like to pretend to be a former Debian user who wants to try out Devuan,
and perform the cross-grade as a former Debian user might.

The point of course, is for find out if there are any glitches before
beowulf goes stable.  I'll be doing it on a real hardware computer, not a VM.

I have found the instructions to migrate jessie to ascii.

Is there a draft of the instructions from buster to beowulf?  A draft I could 
maybe help debug by following it? 

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


[DNG] PXE booting, initial notes

2020-01-16 Thread Mason Loring Bliss
I want to be able to install via PXE booting, but Devuan doesn't (yet) provide
the tools for this. So, I've started poking around, and I've got something
crufted together. There's more work to do, but I wanted to share what I've got
now. Maybe it'll inspire someone and they'll cross the finish line sooner than
me.

I stared with netboot.tar.gz from Debian and a Devuan netboot ISO. My DHCP
server is Debian 9 right now, but this shouldn't matter much. I added this
extra bit of configuration, global scope in /etc/dhcp/dhcpd.conf.

allow booting;
next-server 1.2.3.4;
filename "pxelinux.0";

Change 1.2.3.4 to the name or address of your DHCP/tftp server. I then
installed tftpd. Something that ends up being useful is adding the -s flag to
inetd.conf and restarting inetd, so that we don't have to edit all the files
we'll pull from the ISO. So, at the end of the appropriate line:

/usr/sbin/in.tftpd -s /srv/tftp

The Debian netboot stuff is all relative paths, whereas the ISO looks for
/linux and /initrd.gz. The -s flag is fine for either Devuan or Debian.

We want pxelinux.0 from Debian's netboot.tar.gz until I learn how to build it
locally, so:

cd /srv/tftp ; tar xf /path/to/debian/netboot.tar.gz
rm ldlinux.c32 pxelinux.0 pxelinux.cfg version.info
cp debian-installer/amd64/pxelinux.0 .
rm -r debian-installer

(In short, we pulled out that one file, and nuked everything else.)

The rest of the bits come from the Devuan ISO:

mount -o loop devuan_ascii_2.1_amd64_netinst.iso /mnt
cp /mnt/isolinux/* .
cp /mnt/linux .
cp /mnt/initrd.gz .
cp -r /mnt/install .
mkdir pxelinux.cfg
ln -s ../isolinux.cfg pxelinux.cfg/default

Note that you can't actually install from this yet, as what we boot is quite
literally the netinst CD's contents, and it wants to find an attahed CD, but
this is an initial set of notes, so we'll push on.

Next for me: I want to net-install Beowulf ZFS installs, based on my physical
media installs, so I'll write up notes about how to use debootstrap to build
an install environment we can netboot, presumably with an NFS root.

We should be able to identify the config bits that want a CD and swap in
config bits that just default to wanting a network mirror. If you take their
netboot.tar.gz initrd and unpack it:

gzip -cd initrd.gz | cpio -id

in a directory somewhere, pay attention to, among other things:

sbin/debian-installer*
lib/debian-installer*

We presumably have all the tools we need, and just need to point debconf/d-i
in the right direction.

-- 
Mason Loring Bliss  ((   If I have not seen as far as others, it is because
 ma...@blisses.org   ))   giants were standing on my shoulders. - Hal Abelson


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


Re: [DNG] buster to beowulf

2020-01-16 Thread Mason Loring Bliss
On Thu, Jan 16, 2020 at 06:45:44PM -0500, Hendrik Boom wrote:

> Is there a draft of the instructions from buster to beowulf? A draft I could
> maybe help debug by following it?

This is stolen from the forums and modified slightly. Most of the wording is
taken directly from the post, but I've added details so I can find everything
in one spot. Taken from https://dev1galaxy.org/viewtopic.php?id=3044


--
Short version:
- boot buster, install sysvinit-core

--
download and install devuan-keyring:

wget 
http://pkgmaster.devuan.org/devuan/pool/main/d/devuan-keyring/devuan-keyring_2017.10.03_all.deb
dpkg -i devuan-keyring_2017.10.03_all.deb

--
change sources to devuan, update, upgrade

deb http://pkgmaster.devuan.org/merged beowulf main non-free contrib
deb-src http://pkgmaster.devuan.org/merged beowulf main non-free contrib

deb http://pkgmaster.devuan.org/merged beowulf-security main non-free contrib
deb-src http://pkgmaster.devuan.org/merged beowulf-security main non-free 
contrib

deb http://pkgmaster.devuan.org/merged beowulf-updates main non-free contrib
deb-src http://pkgmaster.devuan.org/merged beowulf-updates main non-free contrib

--
install eudev and let it fail. This might save some time on the first reboot.

reboot and install eudev, remove or purge systemd if it doesn't get
removed automatically. (possibly libnss-systemd also)

(optional) install libelogind0 if you want to replace libsystemd0.
  Without elogind, it's not pulling in the desktop apps.
--

Beware of "predictable interface naming" - depending on how you configure your
network, you might see your NIC names change.

-- 
Mason Loring Bliss"An equation for me has no meaning unless it expresses
 ma...@blisses.orga thought of God." - Srinivasa Ramanujan


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


Re: [DNG] buster to beowulf

2020-01-16 Thread Mark Hindley
On Thu, Jan 16, 2020 at 06:45:44PM -0500, Hendrik Boom wrote:
> I'd like to pretend to be a former Debian user who wants to try out 
> Devuan,
> and perform the cross-grade as a former Debian user might.
> 
> The point of course, is for find out if there are any glitches before
> beowulf goes stable.  I'll be doing it on a real hardware computer, 
> not a VM.
> 
> I have found the instructions to migrate jessie to ascii.
> 
> Is there a draft of the instructions from buster to beowulf?  A draft 
> I could maybe help debug by following it? 

Yes, I have been working on this.

Attached is the script I have been testing. It single steps through.

I don't propose we publish the script but it makes testing quicker. Or 
just run the commands manually. It requires 2 passes.

Mark




buster_migration.sh
Description: Bourne shell script
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng