mknet.sh: make keymap and locale setable options
This commit is contained in:
parent
fc80523768
commit
5ce4621845
15
mknet.sh.in
15
mknet.sh.in
@ -55,6 +55,9 @@ Options:
|
|||||||
-i <lz4|gzip|bzip2|xz> Compression type for the initramfs image (lz4 if unset).
|
-i <lz4|gzip|bzip2|xz> Compression type for the initramfs image (lz4 if unset).
|
||||||
-o <file> Output file name for the netboot tarball (auto if unset).
|
-o <file> Output file name for the netboot tarball (auto if unset).
|
||||||
|
|
||||||
|
-k <keymap> Console keymap to set (us if unset)
|
||||||
|
-l <locale> Locale to set (en_US.UTF-8 if unset)
|
||||||
|
|
||||||
-C "cmdline args" Add additional kernel command line arguments.
|
-C "cmdline args" Add additional kernel command line arguments.
|
||||||
-T "title" Modify the bootloader title.
|
-T "title" Modify the bootloader title.
|
||||||
-S "splash image" Set a custom splash image for the bootloader
|
-S "splash image" Set a custom splash image for the bootloader
|
||||||
@ -74,6 +77,8 @@ while getopts "r:c:C:T:i:o:h" opt; do
|
|||||||
c) XBPS_CACHEDIR="--cachedir=$OPTARG";;
|
c) XBPS_CACHEDIR="--cachedir=$OPTARG";;
|
||||||
i) INITRAMFS_COMPRESSION="$OPTARG";;
|
i) INITRAMFS_COMPRESSION="$OPTARG";;
|
||||||
o) OUTPUT_FILE="$OPTARG";;
|
o) OUTPUT_FILE="$OPTARG";;
|
||||||
|
k) KEYMAP="$OPTARG";;
|
||||||
|
l) LOCALE="$OPTARG";;
|
||||||
C) BOOT_CMDLINE="$OPTARG";;
|
C) BOOT_CMDLINE="$OPTARG";;
|
||||||
T) BOOT_TITLE="$OPTARG";;
|
T) BOOT_TITLE="$OPTARG";;
|
||||||
S) SPLASH_IMAGE="OPTARG";;
|
S) SPLASH_IMAGE="OPTARG";;
|
||||||
@ -201,12 +206,12 @@ cp -f "${SPLASH_IMAGE-data/splash.png}" "$BOOT_DIR"
|
|||||||
|
|
||||||
# This sets all the variables in the default config file
|
# This sets all the variables in the default config file
|
||||||
info_msg "Configuring pxelinux.0 default boot menu"
|
info_msg "Configuring pxelinux.0 default boot menu"
|
||||||
sed -i -e "s|@@SPLASHIMAGE@@|$(basename "${SPLASH_IMAGE}")|" \
|
sed -i -e "s|@@SPLASHIMAGE@@|$(basename "${SPLASH_IMAGE-splash.png}")|" \
|
||||||
-e "s|@@KERNVER@@|${KERNELVERSION}|" \
|
-e "s|@@KERNVER@@|${KERNELVERSION}|" \
|
||||||
-e "s|@@KEYMAP@@|${KEYMAP}|" \
|
-e "s|@@KEYMAP@@|${KEYMAP-us}|" \
|
||||||
-e "s|@@ARCH@@|$BASE_ARCH|" \
|
-e "s|@@ARCH@@|$XBPS_TARGET_ARCH|" \
|
||||||
-e "s|@@LOCALE@@|${LOCALE}|" \
|
-e "s|@@LOCALE@@|${LOCALE-en_US.UTF-8}|" \
|
||||||
-e "s|@@BOOT_TITLE@@|${BOOT_TITLE}|" \
|
-e "s|@@BOOT_TITLE@@|${BOOT_TITLE-Void Linux}|" \
|
||||||
-e "s|@@BOOT_CMDLINE@@|${BOOT_CMDLINE}|" \
|
-e "s|@@BOOT_CMDLINE@@|${BOOT_CMDLINE}|" \
|
||||||
"$PXELINUX_DIR/default"
|
"$PXELINUX_DIR/default"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user