diff options
Diffstat (limited to 'config/chroot_local-hooks/xx-sources.list')
-rwxr-xr-x | config/chroot_local-hooks/xx-sources.list | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/xx-sources.list b/config/chroot_local-hooks/xx-sources.list new file mode 100755 index 0000000..9ea083f --- /dev/null +++ b/config/chroot_local-hooks/xx-sources.list @@ -0,0 +1,12 @@ +#!/bin/sh + +for file in /root/config/*; do [ -r $file ] && . $file; done + +echo "Info: mirror is ${LB_MIRROR_CHROOT} or ${LB_PARENT_MIRROR_CHROOT}" + +# end up with deb.debian.org in final iso since stretch +case "${LB_DISTRIBUTION}" in + wheezy|jessie) exit ;; +esac + +sed -i -e "s#${LB_MIRROR_CHROOT}#http://deb.debian.org/debian#"g /etc/apt/sources.list |