Skip to content

Commit 8bddcc8

Browse files
committed
install.sh: also support a Debian testing desktop image
1 parent fc74543 commit 8bddcc8

1 file changed

Lines changed: 23 additions & 6 deletions

File tree

vmdb2-debian/install.sh

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,19 @@ TYPE="stable"
1010
# Should we package the image up?
1111
ZIP=0
1212
EFI=0
13-
if test $EFI = 0 ; then
14-
IMG=debian-amd64.img
13+
14+
if test $TYPE = stable ; then
15+
if test $EFI = 0 ; then
16+
IMG=debian-amd64.img
17+
else
18+
IMG=debian-amd64-efi.img
19+
fi
1520
else
16-
IMG=debian-amd64-efi.img
21+
if test $EFI = 0 ; then
22+
IMG=debian-testing-amd64.img
23+
else
24+
IMG=debian-testing-amd64-efi.img
25+
fi
1726
fi
1827

1928
# This is the name of the new system as well as the name of the hard disk for it:
@@ -66,10 +75,18 @@ if ! test -f "$DISK" ; then
6675
#sudo rm -fr /var/tmp/.guestfs-*
6776
fi
6877

69-
if test $EFI = 0 ; then
70-
OUT=debian-12-desktop-amd64
78+
if test $TYPE = stable ; then
79+
if test $EFI = 0 ; then
80+
OUT=debian-12-desktop-amd64
81+
else
82+
OUT=debian-12-desktop-amd64-efi
83+
fi
7184
else
72-
OUT=debian-12-desktop-amd64-efi
85+
if test $EFI = 0 ; then
86+
OUT=debian-13-desktop-amd64
87+
else
88+
OUT=debian-13-desktop-amd64-efi
89+
fi
7390
fi
7491
if test $ZIP = 1 && ! test -f $OUT.zip && ! test -d $OUT ; then
7592
mkdir -p $OUT

0 commit comments

Comments
 (0)