Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
arch-boxes
Commits
775ef809
Commit
775ef809
authored
Aug 30, 2020
by
Kristian Klausen
🎉
Browse files
Add swapfile
parent
48d4319d
Changes
1
Hide whitespace changes
Inline
Side-by-side
build.sh
View file @
775ef809
...
...
@@ -71,6 +71,13 @@ EOF
}
function
postinstall
()
{
arch-chroot
"
${
MOUNT
}
"
/usr/bin/btrfs subvolume create /swap
chattr +C
"
${
MOUNT
}
/swap"
chmod
0700
"
${
MOUNT
}
/swap"
fallocate
-l
512M
"
${
MOUNT
}
/swap/swapfile"
mkswap
"
${
MOUNT
}
/swap/swapfile"
echo
-e
"/swap/swapfile none swap defaults 0 0"
>>
"
${
MOUNT
}
/etc/fstab"
echo
"archlinux"
>
"
${
MOUNT
}
/etc/hostname"
echo
"KEYMAP=us"
>
"
${
MOUNT
}
/etc/vconsole.conf"
ln
-sf
/var/run/systemd/resolve/resolv.conf
"
${
MOUNT
}
/etc/resolv.conf"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment