aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-installer/anaconda/files/0056-Add-dracut-args-for-home-to-bootloader.patch
blob: 58b6b3e1cc3116aea5160d61a3ff5cdfc6250dd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 3a62734e0695c81f6a82cf1132d3337b2a08442e Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Mon, 19 Jun 2017 14:55:45 +0800
Subject: [PATCH 56/65] Add dracut args for /home to bootloader

When /home is on a separate device like LVM or RAID dracut needs
to know about this so add the needed rd.* parameters to the cmdline.
This also works when upgrading.

Upstream-Status: Pending

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 pyanaconda/bootloader.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 738527b..eb787c5 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -805,6 +805,11 @@ class BootLoader(object):
         if usr_device:
             dracut_devices.extend([usr_device])
 
+        # Does /home have its own device? If so, we need to tell dracut
+        home_device = storage.mountpoints.get("/home")
+        if home_device:
+            dracut_devices.extend([home_device])
+
         netdevs = [d for d in storage.devices if (getattr(d, "complete", True) and
                    isinstance(d, NetworkStorageDevice))]
         rootdev = storage.root_device
-- 
2.7.4