summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-12-08 12:24:11 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:45 +0100
commit64fe27d865a47957189fd8c249d3eee8be3c75ed (patch)
treed28afff2c9f00de9e4e28b88acb20c408c8925db /functions
parent563df7464ffc3ae39387842564a98434b1fbbca6 (diff)
downloadvyos-live-build-64fe27d865a47957189fd8c249d3eee8be3c75ed.tar.gz
vyos-live-build-64fe27d865a47957189fd8c249d3eee8be3c75ed.zip
Adding emdebian grip mode.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh62
1 files changed, 59 insertions, 3 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index b0af603a5..220d86f2d 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -24,6 +24,10 @@ Set_defaults ()
debian)
LH_DISTRIBUTION="lenny"
;;
+
+ emdebian)
+ LH_DISTRIBUTION="sid"
+ ;;
esac
fi
@@ -68,9 +72,13 @@ Set_defaults ()
# Setting apt recommends
case "${LH_MODE}" in
- *)
+ debian)
LH_APT_RECOMMENDS="${LH_APT_RECOMMENDS:-enabled}"
;;
+
+ emdebian)
+ LH_APT_RECOMMENDS="${LH_APT_RECOMMENDS:-disabled}"
+ ;;
esac
# Setting apt secure
@@ -129,6 +137,10 @@ Set_defaults ()
LH_INITRAMFS="live-initramfs"
fi
;;
+
+ *)
+ LH_INITRAMFS="live-initramfs"
+ ;;
esac
fi
fi
@@ -188,6 +200,10 @@ Set_defaults ()
debian)
LH_ROOT="debian-live"
;;
+
+ emdebian)
+ LH_ROOT="emdebian-live"
+ ;;
esac
fi
@@ -269,6 +285,10 @@ Set_defaults ()
;;
esac
;;
+
+ emdebian)
+ LH_MIRROR_BOOTSTRAP="http://buildd.emdebian.org/grip/"
+ ;;
esac
fi
@@ -277,7 +297,15 @@ Set_defaults ()
# Setting security mirror to fetch packages from
if [ -z "${LH_MIRROR_CHROOT_SECURITY}" ]
then
- LH_MIRROR_CHROOT_SECURITY="http://security.debian.org/"
+ case "${LH_MODE}" in
+ debian)
+ LH_MIRROR_CHROOT_SECURITY="http://security.debian.org/"
+ ;;
+
+ emdebian)
+ LH_MIRROR_CHROOT_SECURITY="none"
+ ;;
+ esac
fi
# Setting mirror which ends up in the image
@@ -295,13 +323,25 @@ Set_defaults ()
;;
esac
;;
+
+ emdebian)
+ LH_MIRROR_BINARY="http://buildd.emdebian.org/grip/"
+ ;;
esac
fi
# Setting security mirror which ends up in the image
if [ -z "${LH_MIRROR_BINARY_SECURITY}" ]
then
- LH_MIRROR_BINARY_SECURITY="http://security.debian.org/"
+ case "${LH_MODE}" in
+ debian)
+ LH_MIRROR_BINARY_SECURITY="http://security.debian.org/"
+ ;;
+
+ emdebian)
+ LH_MIRROR_BINARY_SECURITY="none"
+ ;;
+ esac
fi
# Setting categories value
@@ -339,6 +379,10 @@ Set_defaults ()
debian)
LH_KEYRING_PACKAGES="debian-archive-keyring"
;;
+
+ emdebian)
+ LH_KEYRING_PACKAGES="debian-archive-keyring"
+ ;;
esac
# Setting language string
@@ -612,6 +656,10 @@ Set_defaults ()
debian)
LH_ISO_APPLICATION="Debian Live"
;;
+
+ emdebian)
+ LH_ISO_APPLICATION="Emdebian Live"
+ ;;
esac
fi
@@ -628,6 +676,10 @@ Set_defaults ()
debian)
LH_ISO_VOLUME="Debian Live \$(date +%Y%m%d-%H:%M)"
;;
+
+ emdebian)
+ LH_ISO_VOLUME="Emdebian Live \$(date +%Y%m%d-%H:%M)"
+ ;;
esac
fi
@@ -655,6 +707,10 @@ Set_defaults ()
debian)
LH_NET_ROOT_PATH="/srv/debian-live"
;;
+
+ emdebian)
+ LH_NET_ROOT_PATH="/srv/emdebian-live"
+ ;;
esac
fi