projects
/
mirror
/
dsa-wiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7239d3
)
Copy etc/apt/preferences only if it exists
author
Peter Palfrader
<peter@palfrader.org>
Wed, 5 Oct 2011 17:07:46 +0000
(19:07 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Wed, 5 Oct 2011 17:07:46 +0000
(19:07 +0200)
input/howto/install-kvm.creole
patch
|
blob
|
history
diff --git
a/input/howto/install-kvm.creole
b/input/howto/install-kvm.creole
index
f10ae7b
..
9e2fcfe
100644
(file)
--- a/
input/howto/install-kvm.creole
+++ b/
input/howto/install-kvm.creole
@@
-116,7
+116,7
@@
EOF
rm -fv etc/apt/sources.list &&
( ! [ -e /etc/apt/sources.list ] || cp /etc/apt/sources.list etc/apt/sources.list)
(cp -v /etc/apt/sources.list.d/* etc/apt/sources.list.d/ || true ) &&
-
cp -v /etc/apt/preferences etc/apt/
&&
+
( ! [ -e /etc/apt/preferences ] || cp -v /etc/apt/preferences etc/apt/ )
&&
apt-key exportall | chroot . apt-key add - &&
chroot . apt-get update &&
echo "Apt::Install-Recommends 0;" > etc/apt/apt.conf.d/local-recommends &&