mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 11:36:32 +01:00
Merge branch 'swap-support' into bare-metal-full
This commit is contained in:
commit
3bc2d8b4a8
4 changed files with 45 additions and 4 deletions
19
steps/improve/swap.sh
Normal file
19
steps/improve/swap.sh
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
#!/bin/sh
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2024 Gábor Stefanik <netrolller.3d@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#
|
||||
# Set up swap
|
||||
|
||||
. /steps/bootstrap.cfg
|
||||
. /steps/env
|
||||
|
||||
if ! test -f /swap
|
||||
then
|
||||
echo "Making swap..."
|
||||
dd if=/dev/zero of=/swap bs=1M count=${SWAP_SIZE}
|
||||
mkswap /swap
|
||||
fi
|
||||
swapon /swap
|
||||
|
|
@ -121,6 +121,7 @@ jump: linux ( CHROOT == False )
|
|||
jump: move_disk ( KERNEL_BOOTSTRAP == True )
|
||||
improve: update_jobs
|
||||
improve: finalize_fhs
|
||||
improve: swap ( SWAP_SIZE != 0 )
|
||||
build: musl-1.2.4
|
||||
build: curl-8.5.0
|
||||
improve: get_network ( CHROOT == False )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue