Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:ALP:Products:Automotive:0.0.1
python-kiwi
alternative-re-reading-of-the-partition-table.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File alternative-re-reading-of-the-partition-table.patch of Package python-kiwi
From 4ab089ac5244c1d867be850ec99bc81814466bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Sch=C3=A4fer?= <marcus.schaefer@gmail.com> Date: Tue, 4 Jul 2023 13:00:02 +0200 Subject: [PATCH] Add alternative re-reading of the partition table To inform the kernel about disk geometry changes, kiwi uses partprobe as a primary tool. However it is provided by parted and not necessarily available due to the package requirements on the dracut module. A second attempt via blockdev which is expected to exist is therefore made by this commit diff --git a/dracut/modules.d/99kiwi-lib/kiwi-partitions-lib.sh b/dracut/modules.d/99kiwi-lib/kiwi-partitions-lib.sh index 133693426..60e770c75 100644 --- a/dracut/modules.d/99kiwi-lib/kiwi-partitions-lib.sh +++ b/dracut/modules.d/99kiwi-lib/kiwi-partitions-lib.sh @@ -22,7 +22,11 @@ function create_partitions { create_dasd_partitions "${disk_device}" "${partition_setup}" ;; esac - partprobe "${disk_device}" + if type partprobe &> /dev/null;then + partprobe "${disk_device}" + else + blockdev --rereadpt "${disk_device}" + fi } function create_msdos_partitions { -- 2.40.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor