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
Issue #5360: Add /usr/bin/env to COPY_EXEC_LIST in initramfs hooks. #6913
Conversation
…penzfs#5360. 5dc1ff2 changed the user space program to mount a zfs snapshot from /bin/sh to /usr/bin/env. If the executable is not present in the initramfs then snapshots cannot be automounted. Signed-off-by: James Dingwall <james.dingwall@zynstra.com>
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.
Thanks. I can address the commit message style warnings when this is merged.
Codecov Report
@@ Coverage Diff @@
## master #6913 +/- ##
==========================================
+ Coverage 75.18% 75.26% +0.07%
==========================================
Files 296 296
Lines 95197 95197
==========================================
+ Hits 71577 71648 +71
+ Misses 23620 23549 -71
Continue to review full report at Codecov.
|
5dc1ff2 changed the user space program to mount a zfs snapshot from /bin/sh to /usr/bin/env. If the executable is not present in the initramfs then snapshots cannot be automounted. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Signed-off-by: James Dingwall <james.dingwall@zynstra.com> Closes #5360 Closes #6913 Conflicts: contrib/initramfs/hooks/zfs
5dc1ff2 changed the user space program to mount a zfs snapshot from /bin/sh to /usr/bin/env. If the executable is not present in the initramfs then snapshots cannot be automounted. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Signed-off-by: James Dingwall <james.dingwall@zynstra.com> Closes openzfs#5360 Closes openzfs#6913 Conflicts: contrib/initramfs/hooks/zfs
5dc1ff2 changed the user space program to mount a zfs snapshot from /bin/sh to /usr/bin/env. If the executable is not present in the initramfs then snapshots cannot be automounted. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Signed-off-by: James Dingwall <james.dingwall@zynstra.com> Closes openzfs#5360 Closes openzfs#6913
5dc1ff2 changed the user space program to mount a zfs snapshot from /bin/sh to /usr/bin/env. If the executable is not present in the initramfs then snapshots cannot be automounted. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Signed-off-by: James Dingwall <james.dingwall@zynstra.com> Closes openzfs#5360 Closes openzfs#6913
5dc1ff2 changed the user space program to mount a zfs snapshot from /bin/sh to /usr/bin/env. If the executable is not present in the initramfs then snapshots cannot be automounted. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Signed-off-by: James Dingwall <james.dingwall@zynstra.com> Closes openzfs#5360 Closes openzfs#6913
Description
5dc1ff2 changed the user space program to mount a zfs snapshot from /bin/sh to /usr/bin/env. If the executable is not present in the initramfs then snapshots cannot be automounted. The commit adds /usr/bin/env to the list of executables included in the initramfs image.
Motivation and Context
With zfs 0.6.4 our system booted without intervention when it copied the root filesystem image from a snapshot to memory. After upgrading to 0.7.1 (ubuntu daily ppa) this was no longer the case until /usr/bin/env was included in the initramfs image.
#5360
How Has This Been Tested?
We use a custom initramfs hook script which has
copy_exec /usr/bin/env. This is the equivalent in the master repository which we anticipate adopting in the near future.Types of changes
Checklist:
Signed-off-by.