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

Improve setup process #596

Merged
merged 3 commits into from
Mar 13, 2024
Merged

Improve setup process #596

merged 3 commits into from
Mar 13, 2024

Conversation

vinc
Copy link
Owner

@vinc vinc commented Mar 13, 2024

This PR is a continuation of #595 by @kidharb to improve the setup process

  • Use warning macro when MFS is not present
  • Use error macro when /ini/boot.sh is not present
  • Remove diskless mode message
  • Add option to setup the system on a RAM disk from the install command

@vinc
Copy link
Owner Author

vinc commented Mar 13, 2024

Here's the warning when MFS is not present:

install

And here's the error when /ini/boot.sh is not present:

init

@vinc
Copy link
Owner Author

vinc commented Mar 13, 2024

Users will now be able to setup the system on a RAM disk directly from the install command instead of having to run memory format first:

/
> install
Welcome to MOROS v0.10.2 installation program!

Proceed? [y/N] y

Listing disks ...
Path            Name (Size)
/dev/ata/0/0    QEMU HARDDISK QM00001 (32 MB)
/dev/mem        RAM DISK

Formatting disk ...
Enter path of disk to format:

@kidharb
Copy link
Contributor

kidharb commented Mar 13, 2024

And here's the error when /ini/boot.sh is not present:

init

How do you recover in the case of missing /ini/boot.sh?

Do we need to create it and add?

user login
shell

@vinc
Copy link
Owner Author

vinc commented Mar 13, 2024

How do you recover in the case of missing /ini/boot.sh?

Do we need to create it and add?

user login
shell

The quickest way would be to just run install again that will recreate any missing files on the mounted file system. That's how I update the system whenever I change something: I delete the files and run install again.

But you can also create your own boot script indeed, for example sometimes I just have lisp to boot into the Lisp interpreter, and on my test computers I add env TZ 3600 in winter to set the correct timezone.

Here's the current version of the manual: http://moros.cc/manual.html

@vinc vinc marked this pull request as ready for review March 13, 2024 18:08
@vinc vinc merged commit 4922b2e into trunk Mar 13, 2024
1 check passed
@vinc vinc deleted the feature/install branch March 13, 2024 18:09
@vinc vinc mentioned this pull request Mar 19, 2024
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

Successfully merging this pull request may close these issues.

2 participants