mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-27 06:26:15 +00:00
Update debi.sh
This commit is contained in:
@@ -534,7 +534,7 @@ EOF
|
|||||||
|
|
||||||
[ "$power_off" = true ] && echo 'd-i debian-installer/exit/poweroff boolean true' | $save_preseed
|
[ "$power_off" = true ] && echo 'd-i debian-installer/exit/poweroff boolean true' | $save_preseed
|
||||||
|
|
||||||
save_grub_cfg='cat'
|
save_grub_cfg='cat 1>&2'
|
||||||
if [ "$dry_run" != true ]; then
|
if [ "$dry_run" != true ]; then
|
||||||
if [ -z "$architecture" ]; then
|
if [ -z "$architecture" ]; then
|
||||||
architecture=amd64
|
architecture=amd64
|
||||||
@@ -565,6 +565,13 @@ if [ "$dry_run" != true ]; then
|
|||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
mkdir -p /etc/default/grub.d
|
||||||
|
tee /etc/default/grub.d/zz-debi.cfg 1>&2 << 'EOF'
|
||||||
|
GRUB_DEFAULT=0
|
||||||
|
GRUB_TIMEOUT=5
|
||||||
|
GRUB_TIMEOUT_STYLE=menu
|
||||||
|
EOF
|
||||||
|
|
||||||
if command_exists update-grub; then
|
if command_exists update-grub; then
|
||||||
grub_cfg=/boot/grub/grub.cfg
|
grub_cfg=/boot/grub/grub.cfg
|
||||||
update-grub
|
update-grub
|
||||||
|
|||||||
Reference in New Issue
Block a user