Fixed wrapping issue because of PS1
This commit is contained in:
parent
8af50eb142
commit
be0e36b45b
|
@ -279,7 +279,7 @@ gentoo_umount() {
|
|||
init_bash() {
|
||||
source /etc/profile
|
||||
umask 0077
|
||||
export PS1='(chroot) [0;31m\u[1;31m@\h [1;34m\w [m\$ [m'
|
||||
export PS1='(chroot) \[[0;31m\]\u\[[1;31m\]@\h \[[1;34m\]\w \[[m\]\$ \[[m\]'
|
||||
}; export -f init_bash
|
||||
|
||||
env_update() {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue