Skip to content

Commit

Permalink
cleanup of unused loop devices
Browse files Browse the repository at this point in the history
after losetup -d we still have devives like
/dev/loop0p1
/dev/loop0p2

The command pvs then has an errors like
  Error reading device /dev/loop0p1 at 0 length 4096.

unloading then loop kernel module does a cleanup of the loop devices
  • Loading branch information
Mrfai committed Jun 24, 2021
1 parent 4df26d3 commit 3e5eab3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/fai-diskimage
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ cleanup() {
rm /var/run/fai/FAI_INSTALLATION_IN_PROGRESS
fi
fi
rmmod loop
}

usage() {
Expand Down

0 comments on commit 3e5eab3

Please sign in to comment.