mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-05 20:41:35 -07: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:
parent
310932be8e
commit
34f582c81c
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue