mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
iopupgrade: Configuration handling has been moved into the iopu_chroot script.
This commit is contained in:
parent
e54251dc24
commit
3a7975bd9b
1 changed files with 9 additions and 11 deletions
|
|
@ -266,26 +266,24 @@ fi
|
||||||
|
|
||||||
log "Firmware programmed to flash."
|
log "Firmware programmed to flash."
|
||||||
|
|
||||||
|
|
||||||
log "Transfering configuration to new system."
|
|
||||||
|
|
||||||
# Force upgrade of boot loader
|
# Force upgrade of boot loader
|
||||||
[ $upd_forceboot -eq 1 ] && chroot_cmdline="$chroot_cmdline -b"
|
[ $upd_forceboot -eq 1 ] && chroot_cmdline="$chroot_cmdline -b"
|
||||||
[ $upd_keepconfig -eq 1 ] && chroot_cmdline="$chroot_cmdline -c"
|
|
||||||
|
if [ $upd_keepconfig -eq 1 ]; then
|
||||||
|
log "Transfering configuration to new system."
|
||||||
|
chroot_cmdline="$chroot_cmdline -c"
|
||||||
|
fi
|
||||||
|
|
||||||
mount_newroot
|
mount_newroot
|
||||||
chroot /tmp/newroot_overlay /sbin/iopu_chroot $chroot_cmdline
|
if ! chroot /tmp/newroot_overlay /sbin/iopu_chroot $chroot_cmdline; then
|
||||||
|
log "Configuration migration failed!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
umount_newroot
|
umount_newroot
|
||||||
|
|
||||||
log "New firmware fully installed."
|
log "New firmware fully installed."
|
||||||
run_cleanup=0
|
run_cleanup=0
|
||||||
|
|
||||||
# handle configuration
|
|
||||||
if [ $upd_keepconfig -eq 1 ]
|
|
||||||
then
|
|
||||||
# newroot_exec /sbin/iopu_configurationsystem
|
|
||||||
log "Configuration handling not done yet!"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Now make sure that we actually boot the new system on the next reboot
|
# Now make sure that we actually boot the new system on the next reboot
|
||||||
upd_finnish
|
upd_finnish
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue