Skip to content

Commit

Permalink
update pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
UriHerrera committed Aug 18, 2023
1 parent a6ac09d commit c243818
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
nuts (1.0.10) nitrux; urgency=medium

* Actually, unmount everything because it is an early exit lol.

-- Uri Herrera <uri_herrera@nxos.org> Fri, 18 Aug 2023 01:59:00 -0500

nuts (1.0.9) nitrux; urgency=medium

* Unmount SquashFS when the target root matches the source root.
Expand Down
4 changes: 3 additions & 1 deletion usr/bin/nuts-crr
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,10 @@ LOCAL_SUM=$(md5sum /installed_pkgs_end.txt | cut -c -32)
BACKUP_LIST_SUM=$(md5sum "$NUTS_DIR_SQS"/installed_pkgs_end.txt | cut -c -32)

if [ "$LOCAL_SUM" == "$BACKUP_LIST_SUM" ]; then
puts_info "The current installation of ${TARGET_DIST^} is the same as the backup."
puts_info "The current installation of ${TARGET_DIST^} is the same as the backup, quitting."
unmount_directory "$NUTS_DIR_SQS" >"$OUTPUT_FILE"
unmount_directory "/home" >"$OUTPUT_FILE"
unmount_directory "/dev" >"$OUTPUT_FILE"
exit 0
else
puts_info "Preparing to restore ${TARGET_DIST^}, continuing..."
Expand Down

0 comments on commit c243818

Please sign in to comment.