diff --git a/hooks/debian/20-setup-apt b/hooks/debian/20-setup-apt index aaec51a..8388ca3 100755 --- a/hooks/debian/20-setup-apt +++ b/hooks/debian/20-setup-apt @@ -78,7 +78,8 @@ E_O_APT # # If the host system has security support then enable that here too. # -if ( grep ^deb.*security /etc/apt/sources.list >/dev/null 2>/dev/null ) ; then +if ( test '!' -e /etc/apt/sources.list || \ + grep ^deb.*security /etc/apt/sources.list >/dev/null 2>/dev/null ) ; then cat <> ${prefix}/etc/apt/sources.list #