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

why is tmpfs not present when switching into mfs #10

Open
dch opened this issue Oct 27, 2021 · 0 comments
Open

why is tmpfs not present when switching into mfs #10

dch opened this issue Oct 27, 2021 · 0 comments

Comments

@dch
Copy link
Member

dch commented Oct 27, 2021

Despite having tmpfs.ko in kernel by default, when, at end of mfsroot, we try to re-root, tmpfs is not found. this requires us to have it duplicated both in EFI: /boot/kernel/tmpfs.ko and inside the mfsroot. And on the main disk image. So triplicated, which is messy for keeping in sync.

If this is addressed, then the mfsroot only contains the rescue files, and they change rarely which makes updating an existing deployed box significantly easier.

https://cgit.freebsd.org/src/commit/?id=b798ef6 shows that tmpfs is included in GENERIC.

During boot, we see this https://github.com/skunkwerks/oci-a1-metal/wiki/Boot-Log#serial-console

...
mce0: Ethernet address: b8:ce:f6:4c:2a:76
mce0: link state changed to DOWN
mce1: Ethernet address: b8:ce:f6:4c:2a:77
mce1: link state changed to DOWN
sysctl_unregister_oid: failed(22) to unregister sysctl(tmpfs)

If tmpfs.ko is removed from mfsroot then we see this:

module_register_init: MOD_LOAD (tmpfs, 0xffff000000551414, 0xffff000000acc680) error 17
...
+ reboot -r
- init 1 - - cannot mount tmpfs on /dev/reroot: Invalid fstype: Invalid argument
- init 1 - - reroot failed; going to single user mode
@dch dch changed the title why does tmpfs not present when switching into mfs why is tmpfs not present when switching into mfs Oct 27, 2021
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

No branches or pull requests

1 participant