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

Drop user to a clear warning/error message on <4GB systems #130

Open
probonopd opened this issue Feb 10, 2021 · 4 comments
Open

Drop user to a clear warning/error message on <4GB systems #130

probonopd opened this issue Feb 10, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@probonopd
Copy link
Member

probonopd commented Feb 10, 2021

Drop user to a clear warning/error message on <4GB systems in addition to:

"Enter full pathname of shell or RETURN for /rescue/sh"

@probonopd probonopd added the enhancement New feature or request label Feb 10, 2021
@aki-k
Copy link

aki-k commented Feb 10, 2021

This is the rescue shell I get if I boot the qemu vm with -m 2048:

hellosystem

@grahamperrin
Copy link
Contributor

Incidentally:

cannot read termcap database;
using dumb terminal settings.

– this aspect of /rescue/sh is also seen when intentionally preferring single user mode for a live boot.

#128 and for reference, helloSystem/docs@1770efc ▶ the note under https://hellosystem.github.io/docs/developer/boot.html#boot-into-verbose-single-user-mode

(This rescue shell experience differs significantly from what some users of FreeBSD might think of as a traditional rescue shell.)

@konfou
Copy link

konfou commented Feb 18, 2021

Checking the files, there's already a message in overlays/ramdisk/init.sh#L103-L112 that runs on boot but doesn't show up because all messages are suppressed unless boot_mute='NO'(ref). A simple way then is to show that message on console regardless of what value boot_mute has. The relevant lines can be modified to

  echo "Live system requires 4GB of memory for memdisk, and operation!" >/dev/tty
  echo "Type exit, and press enter after entering the rescue shell to power off." >/dev/tty

@probonopd
Copy link
Member Author

Thank you very much @konfou - trying it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants