Hello community,
here is the log from the commit of package data-partition-service for
openSUSE:Factory checked in at 2018-07-21 10:25:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/data-partition-service (Old)
and /work/SRC/openSUSE:Factory/.data-partition-service.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "data-partition-service"
Sat Jul 21 10:25:05 2018 rev:2 rq:624095 version:0.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/data-partition-service/data-partition-service.changes
2018-05-11 09:14:11.959374922 +0200
+++
/work/SRC/openSUSE:Factory/.data-partition-service.new/data-partition-service.changes
2018-07-21 10:25:05.330959393 +0200
@@ -1,0 +2,11 @@
+Thu Jul 19 13:36:04 UTC 2018 - [email protected]
+
+Fixes for bsc#1100868:
+ - Update data_part.service dependencies to enforce very early
+ execution. So it does not collide with cloud-init growpart.
+ - Update create_data_part script to verify disk before creating
+ any partition and if the disk has been expanded update the
+ partition table.
+ - Fix an lsblk command typo in create_data_part.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ create_data_part ++++++
--- /var/tmp/diff_new_pack.ZdwwJX/_old 2018-07-21 10:25:05.862959264 +0200
+++ /var/tmp/diff_new_pack.ZdwwJX/_new 2018-07-21 10:25:05.862959264 +0200
@@ -40,9 +40,13 @@
# check data partition by label, or create one
if ! blkid -L "${data_label}"; then
root_disk=$(lookup_disk_device_from_root)
- partitions_origin=$(_partition_count "${root_disk})")
+ partitions_origin=$(_partition_count "${root_disk}")
- echo -e "n\n\n\n\n\nw\ny\n" | gdisk "${root_disk}"
+ # Check if the disk has been expanded
+ if sgdisk -v "${root_disk}" | grep -q "secondary header"; then
+ sgdisk --move-second-header "${root_disk}"
+ fi
+ sgdisk -n=0:0:0 "${root_disk}"
partprobe "${root_disk}" || exit 1
++++++ data_part.service ++++++
--- /var/tmp/diff_new_pack.ZdwwJX/_old 2018-07-21 10:25:05.898959256 +0200
+++ /var/tmp/diff_new_pack.ZdwwJX/_new 2018-07-21 10:25:05.898959256 +0200
@@ -1,11 +1,12 @@
[Unit]
Description=Add a data partition
-Requires=local-fs-pre.target
-After=local-fs-pre.target
-Before=local-fs.target
+Requires=systemd-fsck-root.service
+After=systemd-fsck-root.service
+Before=systemd-remount-fs.service
+Wants=local-fs-pre.target
+ConditionPathExists=/etc/data_part.cfg
# Required to let the service run in early stages (before local-fs.target)
-# It can be omitted if the 'nofail' flag is added in fstab
DefaultDependencies=no
Conflicts=shutdown.target
Before=shutdown.target