]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
growfs: downgrade dependency on libcryptsetup to optional
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 22 Jun 2026 23:04:41 +0000 (00:04 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 23 Jun 2026 16:28:44 +0000 (17:28 +0100)
growfs actually gracefully skips when cryptsetup fails or is
missing already, and it is only necessary when the device is
a LUKS device anyway. Downgrade from required ro recommended.

Follow-up for b0ede9f9eebf3f5507e6b3cef9e1de33af7cea68

src/growfs/growfs.c

index ee8f8eebd205ac827852731a79b3bb5a3f387f18..f5a1b7b969ff01694915d6392d7425ca3d94b05e 100644 (file)
@@ -33,7 +33,7 @@ static int resize_crypt_luks_device(dev_t devno, const char *fstype, dev_t main_
         uint64_t size;
         int r;
 
-        r = DLOPEN_CRYPTSETUP(LOG_ERR, SD_ELF_NOTE_DLOPEN_PRIORITY_REQUIRED);
+        r = DLOPEN_CRYPTSETUP(LOG_WARNING, SD_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED);
         if (r < 0)
                 return r;