如何加速 opensuse studio 的启动并显示启动消息

How to speedup the boot of opensuse studio and show boot messages

我想创建一个图像:

注意:引导加载程序是 grub2,但我无法创建相应的标签,所以我使用了最接近的可用标签:"grub".

这是我想出来的,尝试使用Suse Studio提供的界面。 在每次启动设备时 运行 的脚本中:

# read in some variables
. /studio/profile

if [ -f /etc/init.d/suse_studio_firstboot ]
then
  # Put commands to be run on the first boot of your appliance here
  echo "Running SUSE Studio first boot script..."

  #remove grub2 splash screen and boot delays
  sed -i "s/GRUB_HIDDEN_TIMEOUT_QUIET=true/GRUB_HIDDEN_TIMEOUT_QUIET=false/" /etc/default/grub
  sed -i "s/GRUB_TIMEOUT=.*/GRUB_TIMEOUT=0/" /etc/default/grub
  sed -i "s/quiet splash=silent//" /etc/default/grub
  sed -i "s/gfxterm/console/" /etc/default/grub
  sed -i "s/GRUB_THEME.*//" /etc/default/grub
  sed -i "s/GRUB_BACKGROUND.*//" /etc/default/grub
  /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg
  rm -f /etc/init.d/suse_studio_firstboot
  sync
  /sbin/reboot
fi

示例可在此处找到:https://susestudio.com/a/AMSHUG/pc-flasher-32-bit-mbr-efi