Verified Commit e74d4095 authored by Luc Didry's avatar Luc Didry
Browse files

Automatically use text-based installer

Thanks to Benjamin! (https://fiat-tux.fr/developpements/#comment-62073)
parent af2bd0d9
......@@ -6,7 +6,9 @@ Small script aimed to ease the creation of a preseeded Debian ISO image
In order to run the script, you need to install these packages:
```
apt install wget genisoimage xorriso isolinux
```
## How to use
......
......@@ -159,6 +159,22 @@ then
exit 1
fi
echo -ne 'Boot timeout 1sec [======================> ](75%)\r'
sed -i 's/timeout 0/timeout 1/g' ../cd/isolinux/isolinux.cfg 2>/dev/null
if [ $? -ne 0 ]
then
echo "Error while setting timeout in ../cd/isolinux/isolinux.cfg. Aborting"
exit 1
fi
echo -ne 'Disable menu graphic installer [=======================> ](80%)\r'
sed -i 's/include gtk.cfg//g' ../cd/isolinux/menu.cfg 2>/dev/null
if [ $? -ne 0 ]
then
echo "Error while disabling graphic menu installer in ../cd/isolinux/isolinux.cfg. Aborting"
exit 1
fi
if [[ -z $PRESEED ]]
then
echo "d-i debian-installer/locale string fr_BE" > preseed.cfg
......@@ -175,7 +191,7 @@ fi
cd ../
rm -rf irmod/
echo -ne 'Fixing md5sums [=======================> ](80%)\r'
echo -ne 'Fixing md5sums [========================> ](85%)\r'
cd cd
md5sum `find -follow -type f 2>/dev/null` > md5sum.txt 2>/dev/null
if [ $? -ne 0 ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment