Re: [DNG] buster to beowulf

2020-02-03 Thread Andrew McGlashan via Dng
Hi,

On 3/2/20 9:28 pm, Andrew McGlashan via Dng wrote:
> On 17/1/20 6:37 pm, Mark Hindley wrote:
>> On Thu, Jan 16, 2020 at 06:45:44PM -0500, Hendrik Boom wrote:
>> Yes, I have been working on this.
>>
>> Attached is the script I have been testing. It single steps through.
> 
> I've attached a patch file.

Adjusted patch file changed tab to 4 spaces and fixed typo.
 (orig file didn't use tabs)

Cheers
A.
*** buster_migration.sh.orig	2020-02-03 20:56:10.696650864 +1100
--- buster_migration.sh	2020-02-03 21:43:56.804316985 +1100
***
*** 1,10 
! #!/usr/bin/env bash
  
  # Single step: https://stackoverflow.com/questions/9080431/how-execute-bash-script-line-by-line#9080645
  set -x
  trap read debug
  
! update-alternatives --set editor $(which vim.tiny)
  
  # Migrate from Debian buster to Devuan beowulf
  
--- 1,10 
! #!/bin/bash
  
  # Single step: https://stackoverflow.com/questions/9080431/how-execute-bash-script-line-by-line#9080645
  set -x
  trap read debug
  
! update-alternatives --set editor "$(which vim.tiny)"
  
  # Migrate from Debian buster to Devuan beowulf
  
*** if  [ -d /run/systemd/system ]; then
*** 13,26 
  # Must be Buster
  
  # Install devuan-keyring
! wget http://titan:/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 APT sources
! cat > /etc/apt/sources.list  /etc/apt/sources.list <<-EOF
! deb http://pkgmaster.devuan.org/merged beowulf main 
! deb http://pkgmaster.devuan.org/merged beowulf-security main 
! EOF
  
  apt update
  
*** EOF
*** 35,41 
  # Depends: libc6 (>= 2.28), libpam0g (>= 0.99.7.1), systemd (= 241-7~deb10u1), libpam-runtime (>= 1.0.1-6), dbus, systemd-sysv
  # 4) Remove ', systemd-sysv from the end of the line, leaving the rest of the line intact
  # 5) Save file
! cp /var/lib/dpkg/status /var/lib/dpkg/status.save
  editor /var/lib/dpkg/status
  
  # Install new init and dbus.
--- 37,43 
  # Depends: libc6 (>= 2.28), libpam0g (>= 0.99.7.1), systemd (= 241-7~deb10u1), libpam-runtime (>= 1.0.1-6), dbus, systemd-sysv
  # 4) Remove ', systemd-sysv from the end of the line, leaving the rest of the line intact
  # 5) Save file
! cp -pv /var/lib/dpkg/status /var/lib/dpkg/status.save
  editor /var/lib/dpkg/status
  
  # Install new init and dbus.
*** else
*** 67,73 
  apt autoremove --purge
  
  # Change ens3 to eth0 in /etc/network/interfaces
! sed s/ens3/eth0/ -i /etc/network/interfaces
  
  fi
  
--- 69,75 
  apt autoremove --purge
  
  # Change ens3 to eth0 in /etc/network/interfaces
! sed -i 's/ens3/eth0/' /etc/network/interfaces
  
  fi
  


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


Re: [DNG] buster to beowulf

2020-02-03 Thread Andrew McGlashan via Dng
Hi,

On 17/1/20 6:37 pm, Mark Hindley wrote:
> On Thu, Jan 16, 2020 at 06:45:44PM -0500, Hendrik Boom wrote:
> Yes, I have been working on this.
> 
> Attached is the script I have been testing. It single steps through.

I've attached a patch file.

AIUI it is better to specifically path /bin/bash rather than via env,
escpecially when we know for sure where bash is located

 - save [with verbose] orig sources.list (mv -v)
 - save file permissions and timestamps [with verbose] with cp (cp -vp)
 - adjust sed to use more normal "sed -i" form...?
 - indent cat EOF (better readability).

Also fix http:// ref to https:// with a server that is valid.



Not tested not sure if /etc/network/interfaces change is universal
or not.

Perhaps change line 7 for which vim instead of vim.tiny?

Also, if the keyring package (.deb file) is "stable", why not verify
it's checksum?

Passes shellcheck cleanly.

Cheers
A.

-- 
Andrew McGlashan
IT Support & Broadband Solutions


Affinity Vision Australia Pty Ltd

*** buster_migration.sh.orig	2020-02-03 20:56:10.696650864 +1100
--- buster_migration.sh	2020-02-03 21:09:41.708648329 +1100
***
*** 1,10 
! #!/usr/bin/env bash
  
  # Single step: https://stackoverflow.com/questions/9080431/how-execute-bash-script-line-by-line#9080645
  set -x
  trap read debug
  
! update-alternatives --set editor $(which vim.tiny)
  
  # Migrate from Debian buster to Devuan beowulf
  
--- 1,10 
! #!/bin/bash
  
  # Single step: https://stackoverflow.com/questions/9080431/how-execute-bash-script-line-by-line#9080645
  set -x
  trap read debug
  
! update-alternatives --set editor "$(which vim.tiny)"
  
  # Migrate from Debian buster to Devuan beowulf
  
*** if  [ -d /run/systemd/system ]; then
*** 13,26 
  # Must be Buster
  
  # Install devuan-keyring
! wget http://titan:/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 APT sources
! cat > /etc/apt/sources.list  /etc/apt/sources.list <<-EOF
! 		deb http://pkgmaster.devuan.org/merged beowulf main 
! 		deb http://pkgmaster.devuan.org/merged beowulf-security main 
! 	EOF
  
  apt update
  
*** EOF
*** 35,41 
  # Depends: libc6 (>= 2.28), libpam0g (>= 0.99.7.1), systemd (= 241-7~deb10u1), libpam-runtime (>= 1.0.1-6), dbus, systemd-sysv
  # 4) Remove ', systemd-sysv from the end of the line, leaving the rest of the line intact
  # 5) Save file
! cp /var/lib/dpkg/status /var/lib/dpkg/status.save
  editor /var/lib/dpkg/status
  
  # Install new init and dbus.
--- 37,43 
  # Depends: libc6 (>= 2.28), libpam0g (>= 0.99.7.1), systemd (= 241-7~deb10u1), libpam-runtime (>= 1.0.1-6), dbus, systemd-sysv
  # 4) Remove ', systemd-sysv from the end of the line, leaving the rest of the line intact
  # 5) Save file
! cp -pv /var/lib/dpkg/status /var/lib/dpkg/status.save
  editor /var/lib/dpkg/status
  
  # Install new init and dbus.
*** else
*** 67,73 
  apt autoremove --purge
  
  # Change ens3 to eth0 in /etc/network/interfaces
! sed s/ens3/eth0/ -i /etc/network/interfaces
  
  fi
  
--- 69,75 
  apt autoremove --purge
  
  # Change ens3 to eth0 in /etc/network/interfaces
! sed -i 's/ens3/eth0/' /etc/network/interfaces
  
  fi
  


signature.asc
Description: OpenPGP digital 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


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

2019-12-09 Thread Bernard Rosset via Dng
Quite an old thread without any reaction to it, but I myself attempted a 
migration from buster to beowulf today, and thought about sharing my 
experience.



What is the current recommended way to crossgrade from buster to
beowulf (so I can test it properly)


I followed 
https://devuan.org/os/documentation/dev1fanboy/migrate-to-ascii which 
happened to roughly do the trick.


To grab the Devuan keyring, temporarily use ascii repository.


And what logging would be useful to do while I do this?


I suppose you could record your session the way Debian recommends it: 
https://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.html#record-session



In particular, is there any useful way to get a log during reboot to
the new system?


On top of the session recording from above, I guess digging into 
/var/log/dmesg, /var/log/messages (which might include the former) and 
any other resource deemed useful.
I got myself some errors on boot I was not able to find in the logs 
(probably happened before filesystem was mounted)


I am now having to deal with ugly network interfaces name, and a couple 
related quirks & bruises everywhere.
My case was particular, as having installed buster w/o network from the 
full DVD (not netinst), I ended without a desktop GUI & a minimal 
install... I don't know what went wrong with that official Debian installer.
I had to use buster, as the kernel used in stretch (and ascii) was too 
old for my network hardware which ascii did not detect.


I happened to notice, for instance, that USB drives were not popping up 
on plug in Xfce4 GUI... Might be an install quirk... or a software defect?


Overall, it seems to be working. The basics are there.

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