Better PS1

This commit is contained in:
oddlama 2020-01-04 14:41:45 +01:00
parent 6b72474053
commit 065546debf
No known key found for this signature in database
GPG Key ID: 88EA325D51D53908
2 changed files with 25 additions and 3 deletions

View File

@ -6,7 +6,30 @@ See [Install](#Install) for usage instructions.
---
This script will install a minimal bootable gentoo system.
This script will install a minimal (no-bloat) EFI bootable gentoo system.
It will stick closely to the [Gentoo AMD64 Handbook](https://wiki.gentoo.org/wiki/Handbook:AMD64)
and [Sakaki's EFI Install Guide](https://wiki.gentoo.org/wiki/Sakaki%27s_EFI_Install_Guide).
What you will get:
* EFIstub kernel
* Minimal system configuration
What you can get optionally:
* LUKS
* EFI secure boot
* Initramfs (compiled into the kernel for EFIstub)
What you will **NOT** get: (i.e. you will have to do it yourself)
* X11 desktop environment
* A user (except root)
* Any form of RAID
* A specialized kernel (TODO insert links)
Only necessary configuration is applied to provide a common baseline system.
If you need advanced features such as an initramfs or a different
partitioning scheme, you can definitely use this script but will
have to make some adjustments to it.

View File

@ -279,7 +279,7 @@ gentoo_umount() {
init_bash() {
source /etc/profile
umask 0077
export PS1="(chroot) \$PS1"
export PS1='(chroot) \u@\h \w \$ '
}; export -f init_bash
env_update() {
@ -301,7 +301,6 @@ touch_or_die() {
gentoo_chroot() {
if [[ $# -eq 0 ]]; then
# Set the PS1 to a recognizable value
gentoo_chroot /bin/bash --init-file <(echo 'init_bash')
fi