mirror of https://github.com/bohanyang/debi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.6 KiB
2.6 KiB
Debian Network Reinstall Script
Introduction
This script is used to reinstall the Linux OS of a KVM-based VPS or a Hyper-V virtual machine to Debian 10 Buster.
How It Works
- Generate a preseed file to automate installation
- Download the 'Debian-Installer' to the
/bootdirectory - Append a menu entry of the installer to the GRUB2 configuration file
Usage
sudo bash -c "$(curl -fsSL https://github.com/bohanyang/debi/raw/master/debi.sh)" -- <OPTIONS>
Available Options
--preset(china/cloud)--ip--netmask--gateway--dns '8.8.8.8 8.8.4.4'--hostname debian--installer-password--authorized-keys-url--suite buster--mirror-protocol http(http/https/ftp)--mirror-host deb.debian.org--mirror-directory /debian--security-repository http://security.debian.org/debian-securityMagic value:'mirror' = <mirror-protocol>://<mirror-host>/<mirror-directory>/../debian-security--skip-account-setup--username debian--password--timezone UTChttps://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List--ntp 0.debian.pool.ntp.org--skip-partitioning--partitioning-method regular--disk--force-gptCreate a GUID Partition Table (Default)--no-force-gpt--biosDon't create EFI system partition. If GPT is being used, create a BIOS boot partition (bios_grubpartition). Default if/sys/firmware/efiis absent. See--efiCreate an EFI system partition. Default if/sys/firmware/efiexists--filesystem ext4--kernelChoose an package for the kernel image--cloud-kernelChooselinux-image-cloud-amd64as the kernel image--no-install-recommends--install--safe-upgrade--full-upgrade--ethDisable Consistent Network Device Naming to geteth0,eth1, etc. back--bbr--power-off--architecture--boot-partition--firmwareLoad additional non-free firmwares. Seems to be useful on Oracle Cloud--force-efi-extra-removableSee. Useful on Oracle Cloud--dry-run
Presets
china
--dns '223.5.5.5 223.6.6.6'--mirror-protocol https--mirror-host mirrors.aliyun.com--security-repository mirror--ntp ntp.aliyun.com
cloud
--dns '1.1.1.1 1.0.0.1'--mirror-protocol https--mirror-host deb.debian.org--security-repository mirror--ntp 0.debian.pool.ntp.org