Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filesystems cleanup #74

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dagbrown
Copy link
Member

@dagbrown dagbrown commented Oct 8, 2023

Cleaning up a few minor things in the "filesystems" section of the installer.

@@ -93,8 +92,9 @@ select_swap_file()
if [ -n "$SWAPFILE" ]; then

# strange calc. but it ends up being ~ 2xRAM rounded up to 256MB blocks
SWAPSIZE=$(grep MemTotal: /proc/meminfo | awk '{print $2}' | sed 's/[0-9][0-9][0-9]$//') &&
(( SWAPSIZE = ( ( SWAPSIZE / 128 ) + 1 ) * 256 )) &&
SWAPSIZE=$(awk '/^MemTotal:/ {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's update this calculation to match the one in the express disk change :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants