From 061f2facec09d237e486290dfd0ca3eff3cfcbc1 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Mon, 2 Nov 2026 02:37:23 +0100 Subject: [PATCH] Keep urlmount alive during system shutdown Mark urlmount as an initramfs root storage daemon before entering FUSE so systemd-shutdown does not wait for or kill the process serving the root image. --- confluent_osdeploy/utils/urlmount.c | 1 + confluent_osdeploy/utils/urlmount3.c | 1 + 2 files changed, 2 insertions(+) diff --git a/confluent_osdeploy/utils/urlmount.c b/confluent_osdeploy/utils/urlmount.c index 38883af3..73d78383 100644 --- a/confluent_osdeploy/utils/urlmount.c +++ b/confluent_osdeploy/utils/urlmount.c @@ -403,5 +403,6 @@ int main(int argc, char* argv[]) { } curl_easy_cleanup(curl); curl_global_cleanup(); + argv[0][0] = '@'; /* Keep this initramfs root storage daemon alive during shutdown. */ fuse_main(argc, argv, &http_ops, NULL); } diff --git a/confluent_osdeploy/utils/urlmount3.c b/confluent_osdeploy/utils/urlmount3.c index 71accf1e..aeb7a205 100644 --- a/confluent_osdeploy/utils/urlmount3.c +++ b/confluent_osdeploy/utils/urlmount3.c @@ -344,5 +344,6 @@ int main(int argc, char* argv[]) { } curl_easy_cleanup(curl); curl_global_cleanup(); + argv[0][0] = '@'; /* Keep this initramfs root storage daemon alive during shutdown. */ fuse_main(argc, argv, &http_ops, NULL); }