Results 1 to 1 of 1

Thread: modify grub.cfg from USB Boot partition

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    2017-Jun
    Posts
    3

    modify grub.cfg from USB Boot partition

    Hello guys is there any way to modify boot/grub/grub.cfg from UUI (USB partition) so it will autoexecute "kali persistence" after 10s, if any key pressed - count down stop to select different option?

    Code:
    set default=0
    loadfont $prefix/dejavu-bold-16.pf2
    loadfont $prefix/dejavu-bold-14.pf2
    loadfont $prefix/unicode.pf2
    set gfxmode=auto
    insmod all_video
    insmod gfxterm
    insmod png
    
    set color_normal=light-gray/black
    set color_highlight=white/black
    
    if [ -e /isolinux/splash.png ]; then
        # binary_syslinux modifies the theme file to point to the correct
        # background picture
        set theme=/boot/grub/live-theme/theme.txt
    elif [ -e /boot/grub/splash.png ]; then
        set theme=/boot/grub/live-theme/theme.txt
    else
        set menu_color_normal=cyan/blue
        set menu_color_highlight=white/blue
    fi
    
    terminal_output gfxterm
    
    insmod play
    play 960 440 1 0 4 440 1
    
    # Live boot
    menuentry "Live system (persistence, check kali.org/prst)" {
    	linux /live/vmlinuz-4.9.0-kali3-amd64 boot=live components splash username=root hostname=kali persistence nouveau.modeset=0
    	initrd /live/initrd.img-4.9.0-kali3-amd64
    }
    menuentry "Live system (encrypted persistence, check kali.org/prst)" {
    	linux /live/vmlinuz-4.9.0-kali3-amd64 boot=live components splash username=root hostname=kali persistent=cryptsetup persistence-encryption=luks persistence
    	initrd /live/initrd.img-4.9.0-kali3-amd64
    }
    
    # Installer (if any)
    menuentry "Start installer" {
    	linux	/install/gtk/vmlinuz video=vesa:ywrap,mtrr vga=788 quiet
    	initrd	/install/gtk/initrd.gz
    }
    
    
    menuentry "Start installer with speech synthesis" {
    	linux /install/gtk/vmlinuz speakup.synth=soft video=vesa:ywrap,mtrr vga=788 quiet 
    	initrd /install/gtk/initrd.gz
    }
    
    submenu 'Advanced options...' {
    
    # More installer entries (if any)
    menuentry "Install in graphical mode" {
    	linux	/install/gtk/vmlinuz video=vesa:ywrap,mtrr vga=788 quiet
    	initrd	/install/gtk/initrd.gz
    }
    menuentry "Install in text mode" {
    	linux	/install/vmlinuz vga=normal quiet
    	initrd	/install/initrd.gz
    }
    menuentry "Expert install in graphical mode" {
    	linux	/install/gtk/vmlinuz priority=low video=vesa:ywrap,mtrr vga=788 quiet
    	initrd	/install/gtk/initrd.gz
    }
    menuentry "Expert install in text mode" {
    	linux	/install/vmlinuz priority=low vga=normal quiet
    	initrd	/install/initrd.gz
    }
    menuentry "Automatic install in graphical mode" {
    	linux	/install/gtk/vmlinuz auto=true priority=critical video=vesa:ywrap,mtrr vga=788 quiet
    	initrd	/install/gtk/initrd.gz
    }
    menuentry "Automatic install in text mode" {
    	linux	/install/vmlinuz auto=true priority=critical vga=normal quiet
    	initrd	/install/initrd.gz
    }
    menuentry "Rescue system in graphical mode" {
    	linux	/install/gtk/vmlinuz rescue/enable=true video=vesa:ywrap,mtrr vga=788
    	initrd	/install/gtk/initrd.gz
    }
    menuentry "Rescue system in text mode" {
    	linux	/install/vmlinuz rescue/enable=true vga=normal
    	initrd	/install/initrd.gz
    }
    
    
    # Memtest (if any)
    menuentry "memtest86" {
    	linux16 /live/memtest
    }
    
    
    }
    Last edited by Cyrax; 2017-06-13 at 12:59.

Similar Threads

  1. Replies: 1
    Last Post: 2022-08-11, 23:53
  2. Replies: 1
    Last Post: 2016-09-16, 18:10
  3. Install Grub in separate partition
    By ireen in forum Installing Archive
    Replies: 1
    Last Post: 2015-08-23, 22:06

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •