-
Notifications
You must be signed in to change notification settings - Fork 402
feat(lvm): install lvm commands symlinks #2133
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
base: master
Are you sure you want to change the base?
Conversation
CC @teigland |
526d313
to
60c5993
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regardless of the need to add these symlinks, this doesn't work in Leap/SLE due to the way the lvm2 package is shipped.
It will install for convenience, lvm's core commands tools. Lvm package installs all of them as symlink to the binary, and they are universally used without `lvm` command. If someone is reaching for these tools in the initrd it's probably because something is wrong, and so the admin may be stressed or flustered and may not connect that "lvm" as a command does everything they need. So recreating a familiar environment during the emergency shell will really help them. Signed-off-by: Valentin Lefebvre <[email protected]>
60c5993
to
1de8d75
Compare
Thank you @aafeijoo-suse for the review ! Indeed, I tested only on Tumbleweed... |
This issue is being marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. If this is still an issue in the latest release of Dracut and you would like to keep it open please comment on this issue within the next 7 days. Thank you for your contributions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ping @johannbg |
@keentux what do you think about doing this only if "debug" dracut module is also installed (and not do it if dracut module is not installed) ? @aafeijoo-suse would this help to move it forward ? |
Sorry, I don't see the need to add extra symlinks. You will have to convince someone else. |
I'm working on a dracut module capable of installing a minimal OS at pre-mount using ansible. (https://github.com/Geertsky/dracut-bambini). Because ansible relies on these links I currently create the links in the dracut-bambini module. But they should be created by the lvm module. Possibly only when the dracut-module is included. |
May I suggest, with this patch, to add lvm core functionality to the initrd tree.
It will install for convenience, lvm's core commands tools. lvm package installs all of them as symlink to the binary, and they are universally used without
lvm
command.It would be helpful for admin to recreate a familiar environment during the emergency shell. If someone is reaching for these tools in the initrd it's probably because something is wrong, and so the admin may be stressed or flustered and may not connect that "lvm" as a command does everything they need. So recreating a familiar environment will really help them.
Nevertheless, I agree to keep the minimal stuff as possible to the initrd, but as it is "only" symlink, it doesn't increase a lot the size, see below, we just add 1K Bytes:
So, What do you think about this changes for helping with the user experience ?
Checklist