mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-27 06:26:15 +00:00
Add kernel setting
This commit is contained in:
@@ -125,6 +125,10 @@ while [ $# -gt 0 ]; do
|
|||||||
DEBI_FS=$2
|
DEBI_FS=$2
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--kernel)
|
||||||
|
DEBI_KERNEL=$2
|
||||||
|
shift
|
||||||
|
;;
|
||||||
--security)
|
--security)
|
||||||
DEBI_SECURITY=$2
|
DEBI_SECURITY=$2
|
||||||
shift
|
shift
|
||||||
@@ -387,6 +391,10 @@ $save_preseed << EOF
|
|||||||
d-i base-installer/install-recommends boolean false
|
d-i base-installer/install-recommends boolean false
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
if [ -n "$DEBI_KERNEL" ]; then
|
||||||
|
echo "d-i base-installer/kernel/image string $DEBI_KERNEL" | $save_preseed
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$DEBI_SECURITY" ]; then
|
if [ -z "$DEBI_SECURITY" ]; then
|
||||||
DEBI_SECURITY=http://security.debian.org/debian-security
|
DEBI_SECURITY=http://security.debian.org/debian-security
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user