mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
remove check on /dev and /proc
This commit is contained in:
parent
15d8d8d7ed
commit
12efc5cff6
2 changed files with 1 additions and 23 deletions
|
@ -172,11 +172,7 @@ done
|
|||
if [[ -t 1 ]] && (( _optcolor )); then
|
||||
try_enable_color
|
||||
fi
|
||||
# insist that /proc and /dev be mounted (important for chroots)
|
||||
# NOTE: avoid using mountpoint for this -- look for the paths that we actually
|
||||
# use in mkinitcpio. Avoids issues like FS#26344.
|
||||
[[ -e /proc/self/mountinfo ]] || die "/proc must be mounted!"
|
||||
[[ -e /dev/fd ]] || die "/dev must be mounted!"
|
||||
|
||||
#shellcheck disable="SC1090"
|
||||
! . "${_CONFIG}" 2>"${_NO_LOG}" && die "Failed to read configuration '%s'" "${_CONFIG}"
|
||||
if [[ -z "${KERNEL}" ]]; then
|
||||
|
|
|
@ -4,24 +4,6 @@
|
|||
# simplified, stripped down, optimized for size and speed
|
||||
# by Tobias Powalowski <tpowa@archlinux.org>
|
||||
|
||||
msg() {
|
||||
local mesg="$1"; shift
|
||||
# shellcheck disable=SC2059
|
||||
printf "$_color_green==>$_color_none $_color_bold$mesg$_color_none\n" "$@" >&1
|
||||
}
|
||||
|
||||
msg2() {
|
||||
local mesg="$1"; shift
|
||||
# shellcheck disable=SC2059
|
||||
printf " $_color_blue->$_color_none $_color_bold$mesg$_color_none\n" "$@" >&1
|
||||
}
|
||||
|
||||
warning() {
|
||||
local mesg="$1"; shift
|
||||
# shellcheck disable=SC2059
|
||||
printf "$_color_yellow==> WARNING:$_color_none $_color_bold$mesg$_color_none\n" "$@" >&2
|
||||
}
|
||||
|
||||
error() {
|
||||
local mesg="$1"; shift
|
||||
# shellcheck disable=SC2059
|
||||
|
|
Loading…
Reference in a new issue