2023-08-23 15:44:12 +02:00
|
|
|
From: Ignaz Forster <iforster@suse.com>
|
|
|
|
Date: Wed Jan 14 17:57:52 2020 +0100
|
2020-01-14 18:10:41 +01:00
|
|
|
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.
|
|
|
|
|
2023-08-23 16:09:02 +02:00
|
|
|
Index: ignition-2.16.2/config/v3_1/types/filesystem.go
|
2020-05-11 10:52:22 +02:00
|
|
|
===================================================================
|
2023-08-23 16:09:02 +02:00
|
|
|
--- ignition-2.16.2.orig/config/v3_1/types/filesystem.go
|
|
|
|
+++ ignition-2.16.2/config/v3_1/types/filesystem.go
|
|
|
|
@@ -23,6 +23,9 @@ import (
|
2020-05-11 10:52:22 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func (f Filesystem) Key() string {
|
2023-08-23 15:44:12 +02:00
|
|
|
+ if (f.Path != nil) {
|
2023-08-23 16:09:02 +02:00
|
|
|
+ return f.Device + *f.Path
|
2023-08-23 15:44:12 +02:00
|
|
|
+ }
|
2023-08-23 16:09:02 +02:00
|
|
|
return f.Device
|
2020-05-11 10:52:22 +02:00
|
|
|
}
|
|
|
|
|
2023-08-23 16:09:02 +02:00
|
|
|
Index: ignition-2.16.2/config/v3_2/types/filesystem.go
|
2020-05-11 10:52:22 +02:00
|
|
|
===================================================================
|
2023-08-23 16:09:02 +02:00
|
|
|
--- ignition-2.16.2.orig/config/v3_2/types/filesystem.go
|
|
|
|
+++ ignition-2.16.2/config/v3_2/types/filesystem.go
|
|
|
|
@@ -23,6 +23,9 @@ import (
|
2020-10-19 21:20:01 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func (f Filesystem) Key() string {
|
2023-08-23 15:44:12 +02:00
|
|
|
+ if (f.Path != nil) {
|
2023-08-23 16:09:02 +02:00
|
|
|
+ return f.Device + *f.Path
|
2023-08-23 15:44:12 +02:00
|
|
|
+ }
|
2023-08-23 16:09:02 +02:00
|
|
|
return f.Device
|
2020-10-19 21:20:01 +02:00
|
|
|
}
|
|
|
|
|
2023-08-23 16:09:02 +02:00
|
|
|
Index: ignition-2.16.2/config/v3_3/types/filesystem.go
|
2020-10-19 21:20:01 +02:00
|
|
|
===================================================================
|
2023-08-23 16:09:02 +02:00
|
|
|
--- ignition-2.16.2.orig/config/v3_3/types/filesystem.go
|
|
|
|
+++ ignition-2.16.2/config/v3_3/types/filesystem.go
|
|
|
|
@@ -23,6 +23,9 @@ import (
|
2021-07-07 19:06:33 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func (f Filesystem) Key() string {
|
2023-08-23 15:44:12 +02:00
|
|
|
+ if (f.Path != nil) {
|
2023-08-23 16:09:02 +02:00
|
|
|
+ return f.Device + *f.Path
|
2023-08-23 15:44:12 +02:00
|
|
|
+ }
|
2023-08-23 16:09:02 +02:00
|
|
|
return f.Device
|
2021-07-07 19:06:33 +02:00
|
|
|
}
|
|
|
|
|
2023-08-23 16:09:02 +02:00
|
|
|
Index: ignition-2.16.2/config/v3_4/types/filesystem.go
|
2021-07-07 19:06:33 +02:00
|
|
|
===================================================================
|
2023-08-23 16:09:02 +02:00
|
|
|
--- ignition-2.16.2.orig/config/v3_4/types/filesystem.go
|
|
|
|
+++ ignition-2.16.2/config/v3_4/types/filesystem.go
|
|
|
|
@@ -23,6 +23,9 @@ import (
|
2023-03-07 16:49:53 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
func (f Filesystem) Key() string {
|
2023-08-23 15:44:12 +02:00
|
|
|
+ if (f.Path != nil) {
|
2023-08-23 16:09:02 +02:00
|
|
|
+ return f.Device + *f.Path
|
2023-08-23 15:44:12 +02:00
|
|
|
+ }
|
2023-08-23 16:09:02 +02:00
|
|
|
return f.Device
|
2023-03-07 16:49:53 +01:00
|
|
|
}
|
|
|
|
|
2023-08-23 16:09:02 +02:00
|
|
|
Index: ignition-2.16.2/config/v3_5_experimental/types/filesystem.go
|
2023-03-07 16:49:53 +01:00
|
|
|
===================================================================
|
2023-08-23 16:09:02 +02:00
|
|
|
--- ignition-2.16.2.orig/config/v3_5_experimental/types/filesystem.go
|
|
|
|
+++ ignition-2.16.2/config/v3_5_experimental/types/filesystem.go
|
|
|
|
@@ -23,6 +23,9 @@ import (
|
2020-01-14 18:10:41 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
func (f Filesystem) Key() string {
|
2023-08-23 15:44:12 +02:00
|
|
|
+ if (f.Path != nil) {
|
2023-08-23 16:09:02 +02:00
|
|
|
+ return f.Device + *f.Path
|
2023-08-23 15:44:12 +02:00
|
|
|
+ }
|
2023-08-23 16:09:02 +02:00
|
|
|
return f.Device
|
2020-01-14 18:10:41 +01:00
|
|
|
}
|
|
|
|
|