Comments (8)
Booster does check root
partition only. In your case you need fsck,fsck.ext4
only.
/boot
partition is used before initramf enters the game. In fact, this is the partition where the kernel and booster image reside. When booster is loaded it is too late to check /boot
.
from booster.
While compiling fsck into booster's init probably won't be easy, the 2nd, systemd based method listed in wiki appears to work just fine, as long as you pass ro
kernel param
from booster.
Implementing fsck
in go is definitely overkill.
I think that fsck
functionality should follow configuration similar to how the emergency shell is enabled. If user adds fsck.<fs>
to the image (using extra_files
config option) and root filesystem type matches the <fs>
part then fsck.<fs> /dev/...
is called before mounting it.
This feature implementation is straight-forward and should not take much time. Though I work on a few long-overdue code refactoring to make unit-testing easier. Once it is done I'll look at the fsck
feature.
from booster.
Sounds good!
By the way, is there a reason not to mount read-only by default? That would make systemd's fsck work out of the box.
from booster.
The only reason why booster mounts the root partition as RW by default is thats what mount()
does if mountflags
parameter is 0
. See https://man.archlinux.org/man/mount.2
If you want to mount it as read-only then pass ro
with the kernel params.
from booster.
Yeah, I know how this works :)
I was just wondering whether changing the default in booster would make user experience even better.
from booster.
Alright, fsck
functionality is implemented now. Add fsck,fsck.$YOURFS
to extra_files
config option, regenerate the image and it should work.
This functionality is lightly tested. If you see any issues with it please let me know.
from booster.
Alright,
fsck
functionality is implemented now. Addfsck,fsck.$YOURFS
toextra_files
config option, regenerate the image and it should work.This functionality is lightly tested. If you see any issues with it please let me know.
Does booster check ONLY root filesystem or all matching? I mean for example with ext4 root and FAT32 /boot
should fsck,fsck.ext4,fsck.vfat
be added or for ext4 only?
from booster.
Related Issues (20)
- `extra_files: fido2-assert` can't unlock w/ systemd-cryptenroll -ed Yubikey HOT 4
- Update README.md
- Incorrect kernel HOT 4
- Unable to boot into OS HOT 1
- Handle compressed root filesystem in ISO mode HOT 9
- Unable to unlock root partition with tpm2 key HOT 17
- `vconsole: true` blocks booting w/ booster exit status 71 HOT 8
- Is it possible to boot without switching root? HOT 6
- cannot reliably unlock encrypted partition with fido2-assert
- LVM on LUKS no password asked HOT 10
- Missing Intel volume management device driver (NVMe)
- systemd-boot now can default to `/efi` as the folder for initramfs images. How does booster cope with that? HOT 5
- quiet option breaks loading
- Improve fsck handling
- Read-only flag for root fs should overwrite the read-write flag
- booster fails when loading microcode image first HOT 5
- Add support for bcachefs
- Boot isn't silent
- ```vconsole: true``` causes systems with encrypted root to freeze. HOT 1
- No keyboard input on Linux >=6.7.6 kernel HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from booster.