aruu

[MIRROR] Actual replacement for Busybox | suckless
git clone https://git.daat.foo/aruu.git
Log | Files | Refs | README | LICENSE

commit 22bc0c0dd9410fc59ce4e7e31a1a9a333ae50363
parent 745a0bd4bae9c9df022b8fd1928192d47de33ffd
Author: xplshn <anto@xplshn.com.ar>
Date:   Sun, 22 Nov 2026 11:52:12 -0300

mount: -a leaves swap entries to swapon

Diffstat:
Mcmd/linux/mount.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cmd/linux/mount.c b/cmd/linux/mount.c @@ -433,8 +433,9 @@ mountall: const char *realsrc; const char *mtype = me->mnt_type; - /* has "noauto" option or already mounted: skip */ - if (hasmntopt(me, MNTOPT_NOAUTO) || mounted(me->mnt_dir)) + /* has "noauto" option or already mounted: skip. swap has no + * directory to mount on, swapon -a takes it */ + if (!strcmp(me->mnt_type, MNTTYPE_SWAP) || hasmntopt(me, MNTOPT_NOAUTO) || mounted(me->mnt_dir)) continue; flags = 0; fsopts[0] = '\0';