155 |
mbargs="${HYPERVISOR_ARGS}" |
mbargs="${HYPERVISOR_ARGS}" |
156 |
adddracutargs="" |
adddracutargs="" |
157 |
addplymouthinitrd="" |
addplymouthinitrd="" |
158 |
DEBUGARG="systemd.debug" |
DEBUGARG="systemd.log_level=debug systemd.log_target=kmsg" |
159 |
|
|
160 |
usage() |
usage() |
161 |
{ |
{ |
924 |
fi |
fi |
925 |
[[ -n ${verbose} ]] && echo "devtreedir is ${devtreedir}" |
[[ -n ${verbose} ]] && echo "devtreedir is ${devtreedir}" |
926 |
|
|
927 |
# add dracut i18n, keyboard and plymouth kernel args if requested |
# add dracut kernel args if requested |
928 |
if [[ -n ${dracut} ]] || [[ -n ${adddracutargs} ]] |
if [[ -n ${dracut} ]] && [[ -n ${adddracutargs} ]] |
929 |
then |
[ -r /etc/vconsole.conf ] && . /etc/vconsole.conf |
930 |
if [ -r /etc/vconsole.conf ] |
[ -r /etc/locale.conf ] && . /etc/locale.conf |
931 |
then |
|
932 |
. /etc/vconsole.conf |
while read opt rd_opt |
933 |
|
do |
934 |
for i in SYSFONT SYSFONTACM UNIMAP KEYTABLE |
[ -n "${!opt}" ] && kernargs="$kernargs $rd_opt=\"${!opt}\"" |
935 |
do |
done <<< 'KEYMAP rd.vconsole.keymap |
936 |
val=$(eval echo \$$i) |
FONT rd.vconsole.font |
937 |
[[ -n ${val} ]] && kernargs="${kernargs} ${i}=${val}" |
FONT_MAP rd.vconsole.font.map |
938 |
done |
FONT_UNIMAP rd.vconsole.font.unimap |
939 |
else |
UNICODE rd.vconsole.font.unicode |
940 |
if [ -r /etc/conf.d/consolefont ] |
EXT_KEYMAP rd.vconsole.keymap.ext |
941 |
then |
LANG rd.locale.LANG |
942 |
. /etc/conf.d/consolefont |
LC_ALL rd.locale.LC_ALL' |
|
|
|
|
if [[ -n ${CONSOLEFONT} ]] |
|
|
then |
|
|
kernargs="${kernargs} SYSFONT=${CONSOLEFONT}" |
|
|
fi |
|
|
fi |
|
|
|
|
|
if [ -r /etc/conf.d/keymap ] |
|
|
then |
|
|
. /etc/conf.d/keymap |
|
|
|
|
|
if [[ -n ${KEYMAP} ]] |
|
|
then |
|
|
kernargs="${kernargs} KEYTABLE=${KEYMAP}" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
if [ -r /etc/locale.conf ] |
|
|
then |
|
|
. /etc/locale.conf |
|
|
|
|
|
if [[ -n ${LANG} ]] |
|
|
then |
|
|
kernargs="${kernargs} LANG=${LANG}" |
|
|
fi |
|
|
fi |
|
943 |
fi |
fi |
944 |
|
|
945 |
# set this as the default if we have the package and it matches |
# set this as the default if we have the package and it matches |
1034 |
# if we mounted the U-Boot directory, unmount it. |
# if we mounted the U-Boot directory, unmount it. |
1035 |
[[ -n ${mounted} ]] && umount ${ubootDir} |
[[ -n ${mounted} ]] && umount ${ubootDir} |
1036 |
|
|
1037 |
|
# make sure changes make it to the disk. |
1038 |
|
# if /boot is a mountpoint, force the meta data on disk |
1039 |
|
# to by-pass writeback delay. |
1040 |
|
# PPC64LE-only to deal with Petitboot issues |
1041 |
|
if [[ ${ARCH} = ppc64le ]] |
1042 |
|
then |
1043 |
|
sync && mountpoint -q /boot && fsfreeze -f /boot && fsfreeze -u /boot |
1044 |
|
fi |
1045 |
|
|
1046 |
exit 0 |
exit 0 |