1
0
mirror of synced 2026-04-17 00:00:12 +00:00

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:
steve
2006-08-18 15:08:24 +00:00
parent 4890ba9c97
commit d27df26181
6 changed files with 21 additions and 8 deletions

View File

@@ -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.
#

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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
#

View File

@@ -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