MOUNT.LOCKFS(8)
π MOUNT.LOCKFS(8) β the glow-up edition π
okay bestie, gather round, because we're talking about mount.lockfs(8) from the bilibop system administration manual and honestly? she's a helper, she's a symlink, she's giving backstage-pass energy. π
β¨ NAME β¨
mount.lockfs β a little helper script that does the behind-the-scenes work for the mount command. no cap, she's support staff but she's iconic support staff. π
πΈ SYNOPSIS πΈ
mount.lockfs FILESYSTEM MOUNTPOINT [MOUNTFLAGS] -o MOUNTOPTIONS
that's the shape of it, bestie β filesystem, mountpoint, maybe some mount flags, and then the -o mount options. π
π¦ DESCRIPTION π¦
so here's the tea. /usr/sbin/mount.lockfs is literally a symlink pointing at /usr/libexec/bilibop/lockfs_mount_helper. π«Ά
she works as an helper program for the mount(8) command, specifically for the lockfs filesystem type entries in /etc/fstab.
BIG warning, bestie: this script cannot be run manually. not even a little. and she fails if the root filesystem isn't already being managed by bilibop-lockfs. so like, don't just vibe-launch her from your terminal, she will simply not. π
the expected way to run her, and how she does her whole job, goes like this:
- Enable
bilibop-lockfs: set theBILIBOP_LOCKFSvariable totrueinbilibop.conf(5)and reboot the computer; or reboot the computer and append thelockfskernel parameter to the boot commandline. β¨ - one time the future
/is set as an union filesystem mountpoint from into theinitramfsenvironment, the temporary and writablefstab(5)on it is modified to replace filesystem types of some entries bylockfs. options are also modified to remember the original fstype. π - one time the union mount is the new root filesystem, initscripts are executed:
fstab(5)is parsed bymount -a, and thenmount(8)callsmount.lockfswith the proper arguments when alockfsfstype is encountered. π₯ mount.lockfsparses arguments and checks if the filesystem has been whitelisted inbilibop.conf(5), or not. if it is the case, the filesystem is mounted normally and thefstabentry is modified to reflect the actual mount call. if neither the filesystem nor the mountpoint have been whitelisted, then the filesystem is mounted elsewhere and readonly, a temporary filesystem is mounted with proper options, size, permissions and ownership, and anaufsoroverlayfilesystem (depending on the version of your kernel) is mounted on the MOUNTPOINT given as argument with the lower/readonly and upper/writable branches previously set. thefstabentry is replaced by three lines reflecting the actual mount calls. if something fails,mount.lockfsacts as if the filesystem was whitelisted. see/usr/share/doc/bilibop-lockfs/README.Debianfor details. π
β OPTIONS β
lockfs_mount_helper uses options and arguments as they are given by mount(8) after it has parsed the corresponding fstab(5) entry. so, options and arguments are mandatory, mount flags are optional, and all come in the following order:
FILESYSTEMβ corresponding to the first field infstab. this must be a block device, or a symlink to a block device. if this field is given with one of theUUID=*orLABEL=*formats, then themountcommand translates it to the corresponding device name before to call the helper program. π«MOUNTPOINTβ corresponding to the second field infstab.[MOUNTFLAGS]β generic flags passed to themountcommandline (the most usual being-vand-n). these are the optional ones, bestie, the little sprinkle on top. π-o MOUNTOPTIONSβ corresponding to the fourth field infstab. the mount options are parsed by the helper script: iffstype=*is encountered, it is removed from the options and used to mount the readonly branch with this filesystem type. ifro,noexec,nosuidornodevoptions are encountered, they are added to the list of mount options of the writable branch. π§
π FILES π
/etc/fstab/usr/libexec/bilibop/lockfs_mount_helper/usr/share/doc/bilibop-lockfs/README.Debian
π SEE ALSO π
aufs(5), bilibop(7), bilibop.conf(5), fstab(5), mount(8)
like, go read those too, iykyk. π
π AUTHOR π
this manual page has been written by Bilibop Project <quidame@poivron.org>. absolute legends, honestly. π«Ά
and that's the whole page, bestie!! this was the bilibop version dated 2020-02-02 β thanks for reading, you ate that, periodt. π
β¨πΈ
π¦ where this page comes from
- debian bookworm: bilibop-lockfs 0.6.3 Β· GPL-3.0-or-later
- debian trixie: bilibop-lockfs 0.6.5 Β· GPL-3.0-or-later
- ubuntu jammy: bilibop-lockfs 0.6.3 Β· GPL-3.0-or-later
- ubuntu noble: bilibop-lockfs 0.6.3 Β· GPL-3.0-or-later
- ubuntu resolute: bilibop-lockfs 0.6.5 Β· GPL-3.0-or-later
- ubuntu stonking: bilibop-lockfs 0.6.5 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms