diff --git a/.gitignore b/.gitignore index e1e4353d..20ec66d8 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ initrd/boot/moon env-local.sh initrd/bin/** base/usr/** +base/etc/skel/LICENSE .fakeroot kernel/config.cmake ports/out/ diff --git a/base/etc/skel/welcome b/base/etc/skel/welcome new file mode 100644 index 00000000..5769a6a2 --- /dev/null +++ b/base/etc/skel/welcome @@ -0,0 +1,14 @@ +Welcome to the Luna operating system! +You are running on the default user account, selene. + +If you are familiar with Unix-style operating systems (like Linux or *BSD), you should be able to use the Luna terminal without much problems. + +Following the traditional Unix filesystem structure, programs are installed in /usr/bin (/bin is a symlink to /usr/bin). The command `ls /bin` will show all commands available on your current Luna installation. + +Currently, because of driver limitations, the root file system is mounted read-only. Your home folder is writable, but volatile; it is created and populated on boot, and its contents will vanish after a reboot. + +The system is booted using the 'init' program. You can read its configuration files in the /etc/init directory to learn more about the boot process. + +Luna is free software, released under the BSD-2-Clause license. The license is included in the LICENSE file in your home directory. + +View the source code and read more about Luna at https://git.cloudapio.eu/apio/Luna. diff --git a/base/etc/startup/mount-home.sh b/base/etc/startup/mount-home.sh index 612a350d..3ab852ce 100644 --- a/base/etc/startup/mount-home.sh +++ b/base/etc/startup/mount-home.sh @@ -1,3 +1,6 @@ #!/bin/sh +# Create and populate a volatile home directory. mount -t tmpfs tmpfs /home/selene chown selene:selene /home/selene +cp /etc/skel/welcome /home/selene/ +cp /etc/skel/LICENSE /home/selene/ diff --git a/tools/install.sh b/tools/install.sh index 30209673..b0716466 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -31,3 +31,5 @@ mkdir -p base/tmp rm -f base/bin ln -s usr/bin base/bin + +cp $LUNA_ROOT/LICENSE base/etc/skel/LICENSE