diff options
Diffstat (limited to 'share/hydra/bootless')
-rwxr-xr-x | share/hydra/bootless | 40 |
1 files changed, 4 insertions, 36 deletions
diff --git a/share/hydra/bootless b/share/hydra/bootless index 7f7de0f..67f1b96 100755 --- a/share/hydra/bootless +++ b/share/hydra/bootless @@ -215,9 +215,9 @@ function hydra_bootless_init { # Create a fresh repository mkdir -p $HYDRA_FOLDER/bootless/{default,custom,grub} - mkdir -p $HYDRA_FOLDER/bootless/default/{debian,memtest,ubuntu} + mkdir -p $HYDRA_FOLDER/bootless/custom/{debian,memtest} touch $HYDRA_FOLDER/bootless/{default,custom,grub}/.empty - touch $HYDRA_FOLDER/bootless/default/{debian,memtest,ubuntu}/.empty + touch $HYDRA_FOLDER/bootless/default/{debian,memtest}/.empty ( cd $HYDRA_FOLDER/bootless && ln -s . boot) if [ -f "/boot/memtest86+.bin" ]; then @@ -228,40 +228,8 @@ function hydra_bootless_init { fi # Grub configuration - cat > $HYDRA_FOLDER/bootless/grub/grub.cfg <<-EOF -# This is grub.cfg for use with Bootless Management System - -### BEGIN header ### -if [ -s $prefix/grubenv ]; then - load_env -fi -set default="0" -if [ "${prev_saved_entry}" ]; then - set saved_entry="${prev_saved_entry}" - save_env saved_entry - set prev_saved_entry= - save_env prev_saved_entry - set boot_once=true -fi - -function savedefault { - if [ -z "${boot_once}" ]; then - saved_entry="${chosen}" - save_env saved_entry - fi -} - -function load_video { -} - -set timeout=5 -### END header ### - -### BEGIN debian_theme ### -set menu_color_normal=white/blue -set menu_color_highlight=yellow/red -### END debian_theme ### -EOF + cp $HYDRA_FOLDER/config/templates/bootless/grub.cfg $HYDRA_FOLDER/bootless/grub/ + cp $HYDRA_FOLDER/config/templates/bootless/custom.cfg $HYDRA_FOLDER/bootless/custom/ # Initialize git repository ( |