[PATCH] Precreate /etc/modprobe.d in installroot

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

 



If /etc/modprobe.d/anaconda is found in the install env we
copy that into the chroot, which can fail if the modprobe.d/
directory doesn't exist.  Just pre-create it.
---
 yuminstall.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index 5629de0..9e1eaa3 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1226,7 +1226,7 @@ class YumBackend(AnacondaBackend):
         dirList = ['/var', '/var/lib', '/var/lib/rpm', '/tmp', '/dev', '/etc',
                    '/etc/sysconfig', '/etc/sysconfig/network-scripts',
                    '/etc/X11', '/root', '/var/tmp', '/etc/rpm', '/var/cache',
-                   '/var/cache/yum']
+                   '/var/cache/yum', '/etc/modprobe.d']
 
         # If there are any protected partitions we want to mount, create their
         # mount points now.
-- 
1.5.3.7

-- 
Jesse Keating
Fedora -- All my bits are free, are yours?
From 7d23ebff96876521bf5f299c5a6a2bd24c1b5104 Mon Sep 17 00:00:00 2001
From: Jesse Keating <jkeating@xxxxxxxxxx>
Date: Thu, 3 Jan 2008 16:29:33 -0500
Subject: [PATCH] Precreate /etc/modprobe.d in installroot

If /etc/modprobe.d/anaconda is found in the install env we
copy that into the chroot, which can fail if the modprobe.d/
directory doesn't exist.  Just pre-create it.
---
 yuminstall.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index 5629de0..9e1eaa3 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1226,7 +1226,7 @@ class YumBackend(AnacondaBackend):
         dirList = ['/var', '/var/lib', '/var/lib/rpm', '/tmp', '/dev', '/etc',
                    '/etc/sysconfig', '/etc/sysconfig/network-scripts',
                    '/etc/X11', '/root', '/var/tmp', '/etc/rpm', '/var/cache',
-                   '/var/cache/yum']
+                   '/var/cache/yum', '/etc/modprobe.d']
 
         # If there are any protected partitions we want to mount, create their
         # mount points now.
-- 
1.5.3.7

Attachment: signature.asc
Description: PGP signature

_______________________________________________
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