added a code snippet to turn on swap during installation
This commit is contained in:
6
setup
6
setup
@@ -85,6 +85,12 @@ grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck
|
|||||||
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
|
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
|
||||||
|
echo "Enter Swap Size: "
|
||||||
|
read swapsize
|
||||||
|
mkswap -U clear --size $swapsize --file /swapfile
|
||||||
|
swapon /swapfile
|
||||||
|
echo "/swapfile none swap defaults 0 0" >> /etc/fstab
|
||||||
|
|
||||||
echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||||
echo "Enter Username: "
|
echo "Enter Username: "
|
||||||
read username
|
read username
|
||||||
|
|||||||
Reference in New Issue
Block a user