summaryrefslogtreecommitdiff
diff options
authorPaweł Stołowski <stolowski@gmail.com>2020-05-27 11:24:42 +0200
committerPaweł Stołowski <stolowski@gmail.com>2020-05-27 11:24:42 +0200
commit0c1a52ccc639599b36e388f0c13ccffefcc61047 (patch)
tree29db1c78c4313f7c97d0a6e7c1d6a4b7b6617176
parent49838ca87293629c1c6a75262d891a3507a09363 (diff)
Add docstring to actualFsTypeAndMountOptions function.preseed-squashfs-fix
-rw-r--r--systemd/systemd.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/systemd/systemd.go b/systemd/systemd.go
index 14ff63117f..38d1b6765b 100644
--- a/systemd/systemd.go
+++ b/systemd/systemd.go
@@ -770,6 +770,9 @@ func fsMountOptions(fstype string) []string {
return options
}
+// actualFsTypeAndMountOptions returns filesystem type and options to actually
+// mount the given fstype at runtime, i.e. it determines if fuse should be used
+// for squashfs.
func actualFsTypeAndMountOptions(fstype string) (actualFsType string, options []string) {
options = fsMountOptions(fstype)
actualFsType = fstype