How To Manually Update with Magic Wand (for Systems Team members only)
Objectives
Document instructions for a sysadmin to manually udpate terminals in the field.
Prerequisites
Instructions
This should work for all versions. Tested on 6.1.0, 6.2.0, 7.0.1, 7.1.0, 7.2.0, 7.3.0 posx print server. 6.1.0 and 6.2.0 will need updateos.sh ran twice. It will fail the first time with an error from parted, then a reboot is necessary, then it will run correctly the 2nd time.
1. Download the finaldeps.zip from Feature #499. Unzip the
archive to its own directory.
2. Copy rpms to target terminal using WinSCP.
3. On the terminal, navigate to directory now containing the copied deps.
4. Run the command:
# zypper --non-interactive --no-gpg-checks install -y *.rpm
5. Create the /home/touchscreen/OSUpdater/device_name file with correct DEVICE=XXXXXX
(ie DEVICE=cyprus) variable. Save and quit
6. Add the /etc/sysconfig/fullcount config file variables:
FC_OS_UPDATE_URL=https://updates.fullcount.net/osupdater
FC_OS_UPDATE=yes
FC_OS_UPDATE_FORCE=no
7. Navivate to /home/touchscreen/OSUpdater/ directory. Run the command
# systemctl restart fullcount-checkforupdates
8. The squashfs file should download to the /home/touchscreen/OSUpdater/ directory. Once it's finished run
# bash -x updateos.sh
Note: If for whatever reason the new update failed but GRUB is still accesible and the device can boot into the old OS, run this command from the old OS to overwrite the new GRUB with the original bootloader:
# rm /etc/grub.d/05_custom_new_os
# grub2-mkconfig -o /boot/efi/EFI/BOOT/grub.cfg && grub2-mkconfig -o /boot/grub/grub.cfg
# cp /boot/efi/EFI/BOOT/grub.efi /boot/efi/EFI/BOOT/bootx64.efi