From 1f6878a28e45022e485c92a84ff019e3bda0b3ea Mon Sep 17 00:00:00 2001 From: Harsh Virdi Date: Wed, 6 Nov 2024 07:36:42 +0530 Subject: [PATCH] added a code snippet to turn on swap during installation --- setup | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup b/setup index ba2dc78..b37df9b 100755 --- a/setup +++ b/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 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 "Enter Username: " read username