diff --git a/profiles/templates/3.6/6_ac_builder_iso/5_setup/sys-boot/grub/audio.cfg b/profiles/templates/3.6/6_ac_builder_iso/5_setup/sys-boot/grub/audio.cfg new file mode 100644 index 000000000..632a954f8 --- /dev/null +++ b/profiles/templates/3.6/6_ac_builder_iso/5_setup/sys-boot/grub/audio.cfg @@ -0,0 +1,16 @@ + +function commonaudio { + echo "Switching to: $1" + set bootaudio=$2 + export bootaudio + configfile /boot/grub/grub.cfg +} + +submenu "Audio Selection" { + menuentry "ALSA" { + commonaudio "$chosen" alsa + } + menuentry "PulseAudio" { + commonaudio "$chosen" pulseaudio + } +} diff --git a/profiles/templates/3.6/6_ac_builder_iso/5_setup/sys-boot/grub/grub.cfg b/profiles/templates/3.6/6_ac_builder_iso/5_setup/sys-boot/grub/grub.cfg index e90b63709..abb7f638d 100644 --- a/profiles/templates/3.6/6_ac_builder_iso/5_setup/sys-boot/grub/grub.cfg +++ b/profiles/templates/3.6/6_ac_builder_iso/5_setup/sys-boot/grub/grub.cfg @@ -10,6 +10,7 @@ echo "Language: ${bootlang}" echo "Keyboard: ${bootkeymap}" echo "Timezone: ${boottimezone}" + echo "Audio: ${bootaudio}" echo "Bootparams: ${bootparams}" echo "Please wait..." linux \3 \4 \6 ${bootparams} ${noefi_opt} ${no_gfxmode} @@ -93,6 +94,12 @@ then fi bootparams=${bootparams}, +if [ x$bootaudio != x ] +then + bootparams=${bootparams}audio:${bootaudio} +fi +bootparams=${bootparams}, + if [ x$boottimezone != x ] then bootparams=${bootparams}timezone:${boottimezone} @@ -155,6 +162,7 @@ if [ x$no_gfxmode = x ]; then else source /boot/grub/lang_nogfx.cfg fi +source /boot/grub/audio.cfg source /boot/grub/timezone.cfg #?os_builder_linux_system==desktop# source /boot/grub/video.cfg