Fixed wrapping issue because of PS1

This commit is contained in:
oddlama 2020-01-06 00:38:39 +01:00
parent 8af50eb142
commit be0e36b45b
No known key found for this signature in database
GPG Key ID: 88EA325D51D53908
2 changed files with 2 additions and 2 deletions

View File

@ -279,7 +279,7 @@ gentoo_umount() {
init_bash() {
source /etc/profile
umask 0077
export PS1='(chroot) \u@\h \w \$ '
export PS1='(chroot) \[\]\u\[\]@\h \[\]\w \[\]\$ \[\]'
}; export -f init_bash
env_update() {

View File

@ -107,7 +107,7 @@ main_install_gentoo_in_chroot() {
# Copy kernel to EFI
local kernel_version
kernel_version="$(ls "/boot/vmlinuz-"* | sort -V | tail -1)" \
kernel_version="$(find "/boot" -name "vmlinuz-*" | sort -V | tail -1)" \
|| die "Could not list newest kernel file"
kernel_version="${kernel_version#vmlinuz-}" \
|| die "Could not find kernel version"