packages: grub: payload: cleanup line length and whitespaces.

This should contain no functional modifications.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Acked-by: Adrien 'neox' Bourmault <neox@gnu.org>
neox: wrote the commit message
This commit is contained in:
Denis 'GNUtoo' Carikli 2023-11-27 13:15:19 +01:00 committed by Adrien 'neox' Bourmault
parent fe28bc3c82
commit 5d2405eb2e
Signed by: neox
GPG Key ID: 2974E1D5F25DFCC8
1 changed files with 11 additions and 5 deletions

View File

@ -21,7 +21,8 @@
[ "x${DEBUG+set}" = 'xset' ] && set -v
set -u -e
# This is where GRUB is expected to be (outside of the grub-assemble, instead in main checkout)
# This is where GRUB is expected to be (outside of the grub-assemble,
# instead in main checkout)
source "resources/grub/modules.list"
printf "Creating GRUB payloads and configuration files\n"
@ -61,15 +62,20 @@ for keylayoutfile in resources/grub/keymap/*.gkb; do
/boot/grub/layouts/${keymap}.gkb=${keylayoutfile}
if [ "${keymap}" = "usqwerty" ]; then
if [ "${keymap}" = "usqwerty" ]; then
cp resources/grub/config/grub.cfg payload/grub/grub_usqwerty.cfg
else
sed "s/usqwerty/${keymap}/" < resources/grub/config/grub.cfg > payload/grub/grub_${keymap}.cfg
sed "s/usqwerty/${keymap}/" \
< resources/grub/config/grub.cfg \
> payload/grub/grub_${keymap}.cfg
fi
sed "s/grubtest.cfg/grub.cfg/" < payload/grub/grub_${keymap}.cfg > payload/grub/grub_${keymap}_test.cfg
sed "s/grubtest.cfg/grub.cfg/" \
< payload/grub/grub_${keymap}.cfg \
> payload/grub/grub_${keymap}_test.cfg
printf "Generated: 'payload/grub/grub_%s.elf' and configs.'\n" "${keymap}"
printf "Generated: 'payload/grub/grub_%s.elf' and configs.'\n" \
"${keymap}"
done
printf "Done! Check payload/grub/ to see the files.\n\n"