Skip to content

Commit

Permalink
Remove error for swapoff on shutdown
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <[email protected]>
  • Loading branch information
ecdye committed Dec 18, 2024
1 parent e8da339 commit 84369f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zram-config
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ removeZdir() {
removeZswap() {
log "INFO" "Beginning removal of swap device."

if ! swapoff "/dev${ZRAM_DEV}" &> /dev/null; then
if ! swapoff "/dev${ZRAM_DEV}" &> /dev/null && [[ -z $SHUTDOWN ]]; then
log "ERROR" "Failed to swapoff /dev${ZRAM_DEV}."
return 1
fi
Expand Down

0 comments on commit 84369f2

Please sign in to comment.