||2 months ago|
|README.adoc||2 months ago|
|script.sh||1 year ago|
Debian to Devuan migration script
script.sh performs a simple and straight-forward
migration of a Debian
bullseye system into a Devuan
system while preserving all user data. (In fact, the script will
handle a Debian system of either
buster into your
choice of either
The script performs a 2-stage migration with minimal operator intervention:
The first stage replaces the init system to be
The second stage upgrades the software to the standard
beowulfdistribution and reboots again.
First you enter a separate, non-GUI virtual terminal (maybe with control-alt-f3), and login as
root. In some setups this is done using a
systemd-rescueoption. In others it works with the key combination control-alt-f3.
/rootof the host you want to migrate, and make the script executable. E.g.
# wget https://git.devuan.org/rrq/debian-to-devuan/raw/branch/master/script.sh # chmod a+x script.shNote
You should now review the script before executing it!
# shasum script.sh 40e1e6fe09f2b4a7b5552b07cc97db8b38550b36 script.sh
Then, run the migration script with (note the digit 1 at the end):
# DE=xfce ./start 1
At the next prompt (when the script finishes) reboot with:
# systemctl reboot
The machine will then reboot and automatically perform the rest of the migration hands-free. Just wait while a lot of messages scroll past until eventually the machine reboots again and stops at the new login screen.
The above instruction takes you to a Devuan
The first stage of the migration prepares the system for using
sysvinit rather than
systemd, and this stage ends in requesting a
manual reboot with the system primed (via
/etc/rc.local) to enter
the second stage automatically at next boot.
That second migration stage automatically performs all requested
installations for the target
beowulf system and it also
ends with another reboot.
During the second stage an explicit
sshd is run to provide a
possible "resuce entry" option just in case the script does run into
The system is migrated to Devuan
chimaera unless you prefix the
command line with
DIST=beowulf, in which case it will migrate to
The script replaces the original desktop environment that was used in
Debian with the chosen desktop environment as mentioned on the command
DE=xfce. The script also handles
kde instead of
xfce. Further, if the
DE setting is omitted, then
the Devuan system starts as a server system, i.e., without desktop.
|this script only handles systems with Ethernet cable networking.|