]> git.ipfire.org Git - thirdparty/dracut.git/commit
cryptroot-ask: no warn if /run/cryptsetup exist
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Sat, 14 Mar 2020 04:44:47 +0000 (11:44 +0700)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 16 Mar 2020 17:26:33 +0000 (18:26 +0100)
commit17d62d12065c264d899609cf69e8d913fc84460d
tree02cf96e9b40753bd0819c1b61efae66af986b527
parent97a931c7d9f8190115893a932f2e10292704cae4
cryptroot-ask: no warn if /run/cryptsetup exist

In either case:
- encrypted device is decrypted, udev will trigger device changes again,
- multiple encrypted device,

cryptroot-ask will run multiple time, then report:
> mkdir: cannot create directory '/run/cryptsetup': File exists

Pass `-p` into mkdir to ignore that warning.
modules.d/90crypt/cryptroot-ask.sh