2006-08-18 15:08:24 by steve
1. Copy "resolv.conf" before running apt-get update / yum update.
Without this DNS is probably not available/working.
2. Copy /etc/sudoers from the host, if we're installing sudo.
This commit is contained in:
@@ -25,6 +25,13 @@ fi
|
||||
#
|
||||
logMessage Script $0 starting
|
||||
|
||||
|
||||
#
|
||||
# DNS is probably required to run "yum update".
|
||||
#
|
||||
cp /etc/resolv.conf ${prefix}/etc
|
||||
|
||||
|
||||
#
|
||||
# Transform yum so that it works.
|
||||
#
|
||||
|
||||
@@ -27,8 +27,7 @@ logMessage Script $0 starting
|
||||
#
|
||||
# Copy "required" files from our host.
|
||||
#
|
||||
cp /etc/resolv.conf ${prefix}/etc
|
||||
|
||||
# NONE DONE
|
||||
|
||||
#
|
||||
# If the host has sudo then copy the configuration file, and install
|
||||
@@ -41,7 +40,7 @@ if [ -e /etc/sudoers ]; then
|
||||
#
|
||||
# Copy file and fixup permissions.
|
||||
#
|
||||
cp /etc/resolv.conf ${prefix}/etc
|
||||
cp /etc/sudoers ${prefix}/etc
|
||||
chown root:root ${prefix}/etc/sudoers
|
||||
chmod 440 ${prefix}/etc/sudoers
|
||||
|
||||
|
||||
@@ -26,6 +26,11 @@ fi
|
||||
logMessage Script $0 starting
|
||||
|
||||
|
||||
#
|
||||
# You'll probably need DNS to run "apt-get update".
|
||||
#
|
||||
cp /etc/resolv.conf ${prefix}/etc
|
||||
|
||||
|
||||
#
|
||||
# Attempt to auto-magically detect the use of a Proxy for apt-get, and
|
||||
|
||||
@@ -27,7 +27,6 @@ logMessage Script $0 starting
|
||||
#
|
||||
# Copy "required" files from our host.
|
||||
#
|
||||
cp /etc/resolv.conf ${prefix}/etc
|
||||
cp /etc/timezone ${prefix}/etc
|
||||
|
||||
|
||||
@@ -42,7 +41,7 @@ if [ -e /etc/sudoers ]; then
|
||||
#
|
||||
# Copy file and fixup permissions.
|
||||
#
|
||||
cp /etc/resolv.conf ${prefix}/etc
|
||||
cp /etc/sudoers ${prefix}/etc
|
||||
chown root:root ${prefix}/etc/sudoers
|
||||
chmod 440 ${prefix}/etc/sudoers
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
# Steve
|
||||
# --
|
||||
# $Id: 20-setup-apt,v 1.2 2006-08-03 15:12:26 steve Exp $
|
||||
# $Id: 20-setup-apt,v 1.3 2006-08-18 15:08:24 steve Exp $
|
||||
|
||||
|
||||
|
||||
@@ -28,6 +28,10 @@ fi
|
||||
logMessage Script $0 starting
|
||||
|
||||
|
||||
#
|
||||
# You will probably need DNS to run "apt-get update"
|
||||
#
|
||||
cp /etc/resolv.conf ${prefix}/etc
|
||||
|
||||
|
||||
#
|
||||
|
||||
@@ -27,7 +27,6 @@ logMessage Script $0 starting
|
||||
#
|
||||
# Copy "required" files from our host.
|
||||
#
|
||||
cp /etc/resolv.conf ${prefix}/etc
|
||||
cp /etc/timezone ${prefix}/etc
|
||||
|
||||
#
|
||||
@@ -41,7 +40,7 @@ if [ -e /etc/sudoers ]; then
|
||||
#
|
||||
# Copy file and fixup permissions.
|
||||
#
|
||||
cp /etc/resolv.conf ${prefix}/etc
|
||||
cp /etc/sudoers ${prefix}/etc
|
||||
chown root:root ${prefix}/etc/sudoers
|
||||
chmod 440 ${prefix}/etc/sudoers
|
||||
|
||||
|
||||
Reference in New Issue
Block a user