Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lnussel:legacyfree
transactional-update
kernel-install.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kernel-install.diff of Package transactional-update
Index: transactional-update-4.0.0~rc4/sbin/transactional-update.in =================================================================== --- transactional-update-4.0.0~rc4.orig/sbin/transactional-update.in +++ transactional-update-4.0.0~rc4/sbin/transactional-update.in @@ -1149,6 +1149,12 @@ if [ ${DO_ROLLBACK} -eq 1 ]; then log_error "ERROR: btrfs set-default $BTRFS_ID failed!" quit 1 fi + # call snapper plugins to handle default snapshot + shopt -s nullglob + for script in /usr/lib/snapper/plugins/[0-9]*; do + TRANSACTIONAL_UPDATE_PLUGIN=1 "$script" set-default-snapshot / btrfs "$ROLLBACK_SNAPSHOT" + done + shopt -u nullglob # Create the trigger to re-register the system as new version after next # reboot. check_registration_on_next_reboot @@ -1463,6 +1469,16 @@ if [ -n "${ZYPPER_ARG}" -o ${REWRITE_GRU echo "EXPECTED_SNAPSHOT_ID=${SNAPSHOT_ID}" > "${NEW_SNAPSHOT_FLAG}" echo "PREV_SNAPSHOT_ID=${CURRENT_SNAPSHOT_ID}" >> "${NEW_SNAPSHOT_FLAG}" fi + # call snapper plugins to handle default snapshot + shopt -s nullglob + for script in /usr/lib/snapper/plugins/[0-9]*; do + tukit ${TUKIT_OPTS} call "${SNAPSHOT_ID}" env TRANSACTIONAL_UPDATE_PLUGIN=1 "$script" create-snapshot / btrfs "$SNAPSHOT_ID" |& tee -a ${LOGFILE} + done + for script in /usr/lib/snapper/plugins/[0-9]*; do + tukit ${TUKIT_OPTS} call "${SNAPSHOT_ID}" env TRANSACTIONAL_UPDATE_PLUGIN=1 "$script" set-default / btrfs "$SNAPSHOT_ID" |& tee -a ${LOGFILE} + done + shopt -u nullglob + tukit ${TUKIT_OPTS} close "${SNAPSHOT_ID}" |& tee -a ${LOGFILE} fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor