-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disk: Default to direct-io=off in losetup wrapper #17
Conversation
losetup defaults to on when the arg is not present Signed-off-by: ckyrouac <chriskyrouac@gmail.com>
Wait sorry...are you sure? We went over this in containers/bootc#375 (comment) |
that's the behavior I see on my machine, and this is in the man page:
|
also I meant to say "direct-io" defaults to on |
not familiar with |
It's confusingly phrased...I took a stab at clarifying the upstream docs util-linux/util-linux#3002
That bit should only be executed if the argument was provided. |
ah, there was a separate issue preventing the partitions being created when I tried losetup without the direct-io argument earlier. Just did another test and it defaults to off for me when the arg is omitted. There's also a bug in the in-line bash script that threw me off, it passes the original arguments instead of the modified args. I guess adding --direct-io=off at the end of the command overrides the previous arg that set it to on. I'll just leave it as-is since it's working. |
haha oh man, yes |
Yes, it's an unintended behavior of getopt, but now it's a "de facto" standard |
losetup defaults to on when the arg is not present
I mistakenly tested the original wrapper changes with my patched image that included the bootc fix. Verified this works on my machine.