mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-26 01:27:24 +08:00
snap: don't abort on swapon
failures
This is needed when building snap on LXD containers. Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
This commit is contained in:
@@ -47,7 +47,10 @@ parts:
|
||||
fallocate -l 2G /tmp/swap
|
||||
chmod 0600 /tmp/swap
|
||||
mkswap /tmp/swap
|
||||
swapon /tmp/swap
|
||||
if ! swapon /tmp/swap; then
|
||||
echo "Could not enable swap file, continuing anyway"
|
||||
rm /tmp/swap
|
||||
fi
|
||||
|
||||
cabal update
|
||||
cabal install -j
|
||||
|
Reference in New Issue
Block a user