Skip to content
Snippets Groups Projects
Commit 86b6f1d5 authored by Elena Grandi's avatar Elena Grandi
Browse files

Update to run from buster to bullseye

parent d9b5cb31
No related branches found
No related tags found
No related merge requests found
# FUSS 9 to 10
# FUSS 10 to 11
## In-place upgrade of FUSS Clients
### Quickstart
......@@ -9,10 +9,11 @@ On the FUSS Server
cd /srv/clonezilla
git clone https://gitlab.fuss.bz.it/fuss-team/fuss-nine-to-ten.git
cd fuss-nine-to-ten
git checkout ten-to-eleven
./install_menu_option.sh
```
and you're ready to go. Boot from LAN a PC and you'll see the new "FUSS 9 to 10 in-place upgrade" option.
and you're ready to go. Boot from LAN a PC and you'll see the new "FUSS 10 to 11 in-place upgrade" option.
### Packages caching
......
......@@ -21,7 +21,7 @@ FETCH=$(cat /srv/tftp/pxelinux.cfg/default|grep APPEND|tail -1|rev|cut -d ' ' -f
if ! grep "label in-place-upgrade" /srv/tftp/pxelinux.cfg/default; then
cat >> /srv/tftp/pxelinux.cfg/default <<EOF
label in-place-upgrade
MENU LABEL FUSS 9 to 10 in-place upgrade
MENU LABEL FUSS 10 to 11 in-place upgrade
# Please remove the ssh key from .ssh/authorized_keys of the clonezilla
# user instead of using this line!
# MENU PASSWD myPassword
......
......@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
if [ "$(lsb_release -sc)" == "stretch" ]; then
if [ "$(lsb_release -sc)" == "buster" ]; then
cd /root
sed -i '/^mozilla\/DST_Root_CA_X3/s/^/!/' /etc/ca-certificates.conf && update-ca-certificates -f
wget https://gitlab.fuss.bz.it/fuss-team/fuss-nine-to-ten/-/raw/main/run_upgrade.sh
......
......@@ -17,16 +17,16 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
if [ "$1" == "run" ]; then
LOGFILE="/root/9to10.log"
STATEFILE="/root/upgraded_9to10"
LOGFILE="/root/10to11.log"
STATEFILE="/root/upgraded_10to11"
cat <<EOF
FUSS 9 to 10 in-place upgrade tool
FUSS 10 to 11 in-place upgrade tool
Now starting...
EOF
if [ "$(lsb_release -sc)" == "buster" ] && [ -e "$STATEFILE" ]; then
if [ "$(lsb_release -sc)" == "bullseye" ] && [ -e "$STATEFILE" ]; then
echo "[FUSS] Final phase, upgrading configuration"
echo "[FUSS] Run dpkg --configure -a"
dpkg --configure -a
......@@ -40,8 +40,8 @@ EOF
systemctl reboot
exit 0
fi
if [ "$(lsb_release -sc)" == "buster" ]; then
echo "Only upgrading to buster from stretch is currently supported"
if [ "$(lsb_release -sc)" == "bullseye" ]; then
echo "Only upgrading to bullseye from buster is currently supported"
rm /etc/rc.local
rm /root/run_upgrade.sh
rm /root/upgrade.yml
......
......@@ -31,15 +31,15 @@
- name: Update sources.list
replace:
dest: /etc/apt/sources.list
regexp: "stretch"
replace: "buster"
regexp: "buster"
replace: "bullseye"
backup: yes
- name: Update sources.list.d files
replace:
dest: "{{ item }}"
regexp: "stretch"
replace: "buster"
regexp: "buster"
replace: "bullseye"
backup: yes
with_items: "{{ lookup('fileglob', '/etc/apt/sources.list.d/*', wantlist=True) }}"
......@@ -54,7 +54,7 @@
state: absent
failed_when: false
- name: Update all packages to buster (might take more than a hour)
- name: Update all packages to bullseye (might take more than a hour)
apt:
update_cache: no
upgrade: full
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment