Skip to content

6donote4/OpenWrt-Debian-Grub

Repository files navigation

中文

OpenWrt-Debian-Grub

The script in the Repository is used to build Openwrt root partition and boot it or Debian . Then we can update OpenWrt by using rootfs-ext4.img and vmlinuz kernel on Debian/GNU system.

Dependencies

  • Debian 10
  • parted
  • e2fsck
  • resize2fs
  • update-grub2
  • OpenWrt-x86-64-rootfs-ext4.img
  • OpenWrt-x86-64-vmlinuz

Features

  • Write OpenWrt root ext4 partition to disk on Debian 10
  • Change boot order
  • Recovery OpenWrt configuration files by using backup file
  • Upgrade OpenWrt by using the latest image and vmlinux kernel file

Usage:

Script in cli

  1. Part and format your disk.

    • part 4 partition(MBR): swap boot(ext2) root(ext4 being used to mount Debian / directory)
    • the left partition being used to mount and write OpenWrt(ext4)
  2. Install Debian 10 to your disk.

  3. Copy the directory that included OpenWrt-x86-64-rootfs-ext4.img.gz , OpenWrt-x86-64-vmlinuz and your OpenWrt configuration backup file in the repository to the disk on Debian that have been installed just now.

  4. Execute openwrt_grub_config.sh :

    • fully configure:

      ./openwrt_grub_config.sh -m
    • upgrade OpenWrt:

      ./openwrt_grub_config.sh -u
    • recover configuartion:

      ./openwrt_grub_config.sh -r
    • resize openwrt partition:

      ./openwrt_grub_config.sh -s
  5. reboot computer

    reboot

Script with UI based on dialog

Run ./openwrt_grub_config_ui.sh

Operation Gif:

About

The script in the Repository is used to build Openwrt root partition and boot it or Debian .Then we can update OpenWrt by using rootfs-ext4.img and vmlinuz kernel on Debian/Gnu system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors