Skip to content

Commit

Permalink
Update nuts-ccu
Browse files Browse the repository at this point in the history
  • Loading branch information
UriHerrera committed Aug 20, 2023
1 parent 3c4b4fb commit 40de755
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tmp/nuts-ccu
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,7 @@ find /boot -maxdepth 1 -type f \( -name "vmlinuz-*" -o -name "initrd.img-*" \) -

VERSION_PATTERN_VMLINUZ=${LINKED_VMLINUZ#*-}

# Delete files starting with 'config-' in /boot that do not match the version number pattern
find /boot -maxdepth 1 -type f -name "config-*" ! -name "config-$VERSION_PATTERN_VMLINUZ" -delete

# Delete files starting with 'System.map-' in /boot that do not match the version number pattern
find /boot -maxdepth 1 -type f -name "System.map-*" ! -name "System.map-$VERSION_PATTERN_VMLINUZ" -delete

puts_success "Non-linked vmlinuz-* and initrd.img-* files in /boot deleted successfully."
Expand Down

0 comments on commit 40de755

Please sign in to comment.