[yocto] [meta-anaconda][PATCH 1/1] packagegroup-anaconda-support: Add lvm2-udevrules

2019-03-26 Thread Ovidiu Panait
Installing an image without lvm2-udevrules using Anaconda would
produce an un-bootable system because "/dev/mapper/xxx" files are
not created.

Signed-off-by: Ovidiu Panait 
---
 .../packagegroups/packagegroup-anaconda-support.bb   | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/recipes-installersupport/packagegroups/packagegroup-anaconda-support.bb 
b/recipes-installersupport/packagegroups/packagegroup-anaconda-support.bb
index 3f3f41e..21d69b6 100644
--- a/recipes-installersupport/packagegroups/packagegroup-anaconda-support.bb
+++ b/recipes-installersupport/packagegroups/packagegroup-anaconda-support.bb
@@ -12,6 +12,7 @@ RDEPENDS_${PN} = " \
 efibootmgr \
 kmod \
 lvm2 \
+lvm2-udevrules \
 util-linux-mount \
 util-linux-switch-root \
 init-ifupdown \
-- 
2.20.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-security][PATCH] xmlsec1: fix invalid paths in target xmlsec1Conf.sh

2017-12-14 Thread Ovidiu Panait
Remove build host paths from target xmlsec1Conf.sh script.

Signed-off-by: Catalin Enache 
Signed-off-by: Ovidiu Panait 
---
 recipes-security/xmlsec1/xmlsec1_1.2.24.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-security/xmlsec1/xmlsec1_1.2.24.bb 
b/recipes-security/xmlsec1/xmlsec1_1.2.24.bb
index 9798ce2..1f7fbd3 100644
--- a/recipes-security/xmlsec1/xmlsec1_1.2.24.bb
+++ b/recipes-security/xmlsec1/xmlsec1_1.2.24.bb
@@ -46,6 +46,7 @@ do_compile_ptest () {
 
 do_install_append() {
 sed -i -e "s@${STAGING_DIR_HOST}@@g" ${D}${bindir}/xmlsec1-config
+sed -e "s@${STAGING_DIR_HOST}@@g" -i ${D}${libdir}/xmlsec1Conf.sh
 }
 
 do_install_ptest () {
-- 
2.10.2

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-security][PATCH] xmlsec1: fix invalid paths in target xmlsec1Conf.sh

2017-12-15 Thread Ovidiu Panait
Remove build host paths from target xmlsec1Conf.sh script.

Signed-off-by: Catalin Enache 
Signed-off-by: Ovidiu Panait 
---
 recipes-security/xmlsec1/xmlsec1_1.2.24.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-security/xmlsec1/xmlsec1_1.2.24.bb 
b/recipes-security/xmlsec1/xmlsec1_1.2.24.bb
index 9798ce2..1f7fbd3 100644
--- a/recipes-security/xmlsec1/xmlsec1_1.2.24.bb
+++ b/recipes-security/xmlsec1/xmlsec1_1.2.24.bb
@@ -46,6 +46,7 @@ do_compile_ptest () {
 
 do_install_append() {
 sed -i -e "s@${STAGING_DIR_HOST}@@g" ${D}${bindir}/xmlsec1-config
+sed -e "s@${STAGING_DIR_HOST}@@g" -i ${D}${libdir}/xmlsec1Conf.sh
 }
 
 do_install_ptest () {
-- 
2.10.2

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-anaconda][PATCH 2/2] anaconda_support_image: Add package-management to IMAGE_FEATURES

2019-05-09 Thread Ovidiu Panait
Currently, if a target image does not contain the rpm database,
any rpm queries that anaconda executes will fail.

To fix this, add the rpm database to all images.

Signed-off-by: Ovidiu Panait 
---
 classes/anaconda_support_image.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/classes/anaconda_support_image.bbclass 
b/classes/anaconda_support_image.bbclass
index 71a5d96..ce48616 100644
--- a/classes/anaconda_support_image.bbclass
+++ b/classes/anaconda_support_image.bbclass
@@ -1,5 +1,5 @@
 FEATURE_PACKAGES_anaconda-support = "packagegroup-anaconda-support"
-IMAGE_FEATURES_append = " anaconda-support"
+IMAGE_FEATURES_append = " anaconda-support package-management"
 
 # Generate filesystem images for image copy install
 IMAGE_FSTYPES += "ext4"
-- 
2.20.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-anaconda][PATCH 1/2] python3-anaconda: Fix xserver detection

2019-05-09 Thread Ovidiu Panait
When installing an image that has graphical interface,
/etc/systemd/system/default.target will point to multi-user.target
instead of graphical.target.

To fix this, use the right rpm query to detect the presence of xserver.

Signed-off-by: Ovidiu Panait 
---
 ...aconda-payload-Fix-xserver-detection.patch | 35 +++
 .../anaconda/python3-anaconda_28.22.11.bb |  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 
recipes-installer/anaconda/files/0001-pyanaconda-payload-Fix-xserver-detection.patch

diff --git 
a/recipes-installer/anaconda/files/0001-pyanaconda-payload-Fix-xserver-detection.patch
 
b/recipes-installer/anaconda/files/0001-pyanaconda-payload-Fix-xserver-detection.patch
new file mode 100644
index 000..ae56019
--- /dev/null
+++ 
b/recipes-installer/anaconda/files/0001-pyanaconda-payload-Fix-xserver-detection.patch
@@ -0,0 +1,35 @@
+From f35925543f8b19c7b39cef4679cc0bc74bfa5253 Mon Sep 17 00:00:00 2001
+From: Ovidiu Panait 
+Date: Thu, 9 May 2019 09:04:44 +
+Subject: [PATCH] pyanaconda: payload: Fix xserver detection
+
+When installing an image that has graphical interface,
+/etc/systemd/system/default.target will point to multi-user.target
+instead of graphical.target.
+
+To fix this, use the right rpm query to detect the presence of xserver.
+
+Upstream-Status: Inappropriate [OE specific]
+
+Signed-off-by: Ovidiu Panait 
+---
+ pyanaconda/payload/__init__.py | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/pyanaconda/payload/__init__.py b/pyanaconda/payload/__init__.py
+index f67a4cd94..7929407e7 100644
+--- a/pyanaconda/payload/__init__.py
 b/pyanaconda/payload/__init__.py
+@@ -897,8 +897,7 @@ class Payload(object):
+ ts = rpm.TransactionSet(util.getSysroot())
+ 
+ # XXX one day this might need to account for anaconda's display 
mode
+-if ts.dbMatch("provides", 'service(graphical-login)').count() and 
\
+-   ts.dbMatch('provides', 'xorg-x11-server-Xorg').count() and \
++if ts.dbMatch('provides', 'xserver-xorg').count() and \
+not flags.usevnc:
+ # We only manipulate the ksdata.  The symlink is made later
+ # during the config write out.
+-- 
+2.18.1
+
diff --git a/recipes-installer/anaconda/python3-anaconda_28.22.11.bb 
b/recipes-installer/anaconda/python3-anaconda_28.22.11.bb
index 66bbc1c..5deeae4 100755
--- a/recipes-installer/anaconda/python3-anaconda_28.22.11.bb
+++ b/recipes-installer/anaconda/python3-anaconda_28.22.11.bb
@@ -119,6 +119,7 @@ SRC_URI = 
"git://github.com/rhinstaller/anaconda;protocol=https;branch=f28-relea

file://0001-Make-pyanaconda.dbus.typing-work-with-Python-3.7-159.patch \
file://0068-disable-chronyd.patch \
file://0069-disable-location-detection-based-on-IP-address.patch \
+   file://0001-pyanaconda-payload-Fix-xserver-detection.patch \
   "
 
 SRCREV = "0b0d2f86b4323e6ee7a186bc8181ffe7553c9235"
-- 
2.20.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-anaconda][PATCH 1/1] initramfs-module-setup-live: call udev settle before umounting /run/media/*

2019-09-22 Thread Ovidiu Panait
This fixes a race conditition which leaves devices mounted, causing the
following anaconda installation failure:
File "/usr/lib64/python3.5/site-packages/gi/overrides/BlockDev.py", line 963, 
in wrapped
  raise transform[1](msg)
File "/usr/lib64/python3.5/site-packages/blivet/devices/lvm.py", line 913, in 
_teardown
  blockdev.lvm.lvdeactivate(self.vg.name, self._name)
File "/usr/lib64/python3.5/site-packages/blivet/threads.py", line 53, in 
run_with_lock
  return m(*args, **kwargs)
File "/usr/lib64/python3.5/site-packages/blivet/devices/storage.py", line 431, 
in teardown
  self._teardown(recursive=recursive)
File "/usr/lib64/python3.5/site-packages/blivet/threads.py", line 53, in 
run_with_lock
  return m(*args, **kwargs)
File "/usr/lib64/python3.5/site-packages/blivet/devices/lvm.py", line 1933, in 
teardown
  return DMDevice.teardown(self, recursive)
gi.overrides.BlockDev.LVMError: Process reported exit code 5:   Logical volume 
wrll_intel-x86-64/root contains a filesystem in use.

Signed-off-by: Ovidiu Panait 
---
 recipes-installer/initrdscripts/files/umountfs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/recipes-installer/initrdscripts/files/umountfs 
b/recipes-installer/initrdscripts/files/umountfs
index f01adea..4792110 100644
--- a/recipes-installer/initrdscripts/files/umountfs
+++ b/recipes-installer/initrdscripts/files/umountfs
@@ -3,6 +3,9 @@ umountfs_enabled() {
 }
 
 umountfs_run() {
+# Make sure /run/media is fully populated
+udevadm settle
+
 # Umount other media for anaconda
 for dir in `awk '/\/dev.* \/run\/media/{print $2}' /proc/mounts`; do
 umount $dir
-- 
2.18.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto