Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • M mkinitcpio-archiso
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
    • Locked files
  • Issues 5
    • Issues 5
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch LinuxArch Linux
  • Mkinitcpio
  • mkinitcpio-archiso
  • Issues
  • #13
Closed
Open
Issue created May 30, 2022 by nl6720@nl6720Developer

Make copytoram automatic

Currently, copytoram=y needs to be explicitly enabled, but that's tedious and having additional boot loader entries just bloats the boot loader menu.

I think that copytoram should be automatically enabled if there's enough free RAM.

For example, if the free RAM is more than the rootfs image size + 2 GiB:

if [ "$(awk '$1 == "MemFree:" { print $2 }' /proc/meminfo)" -gt $(( $(du -bsk "$fs_img" | cut -f 1) + 2097152 )) ]; then
  copytoram="y"
fi
Edited May 30, 2022 by nl6720
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking