f1241dbb88
doesn't contain path entry - Add 0003-Move-the-GTP-header-on-resized-disks.patch to make it possible to create partitions on resized disk images - Add dm and crypt modules as dependencies to make it possible to configure a luks device - Fix patch file metadata OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/ignition?expand=0&rev=110
84 lines
2.5 KiB
Diff
84 lines
2.5 KiB
Diff
From: Ignaz Forster <iforster@suse.com>
|
|
Date: Wed Jan 14 17:57:52 2020 +0100
|
|
Upstream: Ticket opened [gh#coreos/ignition#890]
|
|
|
|
Implement poor man's solution for mounting a device multiple times,
|
|
e.g. to mount several subvolumes from a Btrfs device or bind mounting
|
|
the device to multiple places, by also adding the path to the key.
|
|
|
|
Index: ignition-2.15.0/config/v3_1/types/filesystem.go
|
|
===================================================================
|
|
--- ignition-2.15.0.orig/config/v3_1/types/filesystem.go
|
|
+++ ignition-2.15.0/config/v3_1/types/filesystem.go
|
|
@@ -23,7 +23,10 @@ import (
|
|
)
|
|
|
|
func (f Filesystem) Key() string {
|
|
+ if (f.Path != nil) {
|
|
+ f.Device += *f.Path
|
|
+ }
|
|
return f.Device
|
|
}
|
|
|
|
func (f Filesystem) IgnoreDuplicates() map[string]struct{} {
|
|
Index: ignition-2.15.0/config/v3_2/types/filesystem.go
|
|
===================================================================
|
|
--- ignition-2.15.0.orig/config/v3_2/types/filesystem.go
|
|
+++ ignition-2.15.0/config/v3_2/types/filesystem.go
|
|
@@ -23,7 +23,10 @@ import (
|
|
)
|
|
|
|
func (f Filesystem) Key() string {
|
|
+ if (f.Path != nil) {
|
|
+ f.Device += *f.Path
|
|
+ }
|
|
return f.Device
|
|
}
|
|
|
|
func (f Filesystem) IgnoreDuplicates() map[string]struct{} {
|
|
Index: ignition-2.15.0/config/v3_3/types/filesystem.go
|
|
===================================================================
|
|
--- ignition-2.15.0.orig/config/v3_3/types/filesystem.go
|
|
+++ ignition-2.15.0/config/v3_3/types/filesystem.go
|
|
@@ -23,7 +23,10 @@ import (
|
|
)
|
|
|
|
func (f Filesystem) Key() string {
|
|
+ if (f.Path != nil) {
|
|
+ f.Device += *f.Path
|
|
+ }
|
|
return f.Device
|
|
}
|
|
|
|
func (f Filesystem) IgnoreDuplicates() map[string]struct{} {
|
|
Index: ignition-2.15.0/config/v3_4/types/filesystem.go
|
|
===================================================================
|
|
--- ignition-2.15.0.orig/config/v3_4/types/filesystem.go
|
|
+++ ignition-2.15.0/config/v3_4/types/filesystem.go
|
|
@@ -23,7 +23,10 @@ import (
|
|
)
|
|
|
|
func (f Filesystem) Key() string {
|
|
+ if (f.Path != nil) {
|
|
+ f.Device += *f.Path
|
|
+ }
|
|
return f.Device
|
|
}
|
|
|
|
func (f Filesystem) IgnoreDuplicates() map[string]struct{} {
|
|
Index: ignition-2.15.0/config/v3_5_experimental/types/filesystem.go
|
|
===================================================================
|
|
--- ignition-2.15.0.orig/config/v3_5_experimental/types/filesystem.go
|
|
+++ ignition-2.15.0/config/v3_5_experimental/types/filesystem.go
|
|
@@ -23,7 +23,10 @@ import (
|
|
)
|
|
|
|
func (f Filesystem) Key() string {
|
|
+ if (f.Path != nil) {
|
|
+ f.Device += *f.Path
|
|
+ }
|
|
return f.Device
|
|
}
|
|
|
|
func (f Filesystem) IgnoreDuplicates() map[string]struct{} {
|