mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-26 02:41:39 +08:00
snap: replace dd
by fallocate
(faster)
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
This commit is contained in:
@@ -44,7 +44,7 @@ parts:
|
|||||||
- libatomic1
|
- libatomic1
|
||||||
override-build: |
|
override-build: |
|
||||||
# Give ourselves enough memory to build
|
# Give ourselves enough memory to build
|
||||||
dd if=/dev/zero of=/tmp/swap bs=1M count=2000
|
fallocate -l 2G /tmp/swap
|
||||||
chmod 0600 /tmp/swap
|
chmod 0600 /tmp/swap
|
||||||
mkswap /tmp/swap
|
mkswap /tmp/swap
|
||||||
swapon /tmp/swap
|
swapon /tmp/swap
|
||||||
|
Reference in New Issue
Block a user