[anaconda-storage-branch PATCH 5/5] Start with a basic /etc/hosts file (#491634)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



NetworkManager likes having an /etc/hosts file to start with on the
system.  It doesn't want to "own" the file, only touch and poke at it.
---
 scripts/mk-images    |    1 +
 scripts/upd-instroot |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/scripts/mk-images b/scripts/mk-images
index db2fa9d..e669a0b 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -596,6 +596,7 @@ makeinitrd() {
     install -m 644 $IMGPATH/etc/passwd $MBD_DIR/etc/passwd
     install -m 644 $IMGPATH/etc/group $MBD_DIR/etc/group
     install -m 644 $IMGPATH/etc/nsswitch.conf $MBD_DIR/etc/nsswitch.conf
+    install -m 644 $IMGPATH/etc/hosts $MBD_DIR/etc/hosts
 
     instbin $IMGPATH /usr/bin/mount $MBD_DIR /sbin/mount
     for mountcmd in $IMGPATH/usr/sbin/mount.* ; do
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index 8e86eae..8fab353 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -321,6 +321,7 @@ etc/fonts
 etc/group
 etc/gtk-2.0/gtkrc*
 etc/hal
+etc/hosts
 etc/im_palette.pal
 etc/imrc
 etc/iscsid.conf
-- 
1.6.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux