diff options
author | Luca Boccassi <luca.boccassi@microsoft.com> | 2020-06-29 13:19:31 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@microsoft.com> | 2020-07-29 17:17:32 +0100 |
commit | 18d73705874f9bf0643485714e9dc069a2e9b599 (patch) | |
tree | 840ce033e9291bac5a28974dcc74180ca0efe074 /src/firstboot | |
parent | 5511d8c1b9ad9e5288a2a0bacffdbcbed5c6c19a (diff) | |
download | systemd-18d73705874f9bf0643485714e9dc069a2e9b599.tar.gz |
service: add new RootImageOptions feature
Allows to specify mount options for RootImage.
In case of multi-partition images, the partition number can be prefixed
followed by colon. Eg:
RootImageOptions=1:ro,dev 2:nosuid nodev
In absence of a partition number, 0 is assumed.
Diffstat (limited to 'src/firstboot')
-rw-r--r-- | src/firstboot/firstboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index a3f442518e..78abcbeff6 100644 --- a/src/firstboot/firstboot.c +++ b/src/firstboot/firstboot.c @@ -933,7 +933,7 @@ static int setup_image(char **ret_mount_dir, LoopDevice **ret_loop_device, Decry if (r < 0) return log_error_errno(r, "Failed to set up loopback device: %m"); - r = dissect_image_and_warn(d->fd, arg_image, NULL, 0, NULL, f, &dissected_image); + r = dissect_image_and_warn(d->fd, arg_image, NULL, 0, NULL, NULL, f, &dissected_image); if (r < 0) return r; |