Skip to content
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

Update livecheck.sh to fix Linux 6 loop device false positives #14

Closed
wants to merge 4 commits into from
Closed

Update livecheck.sh to fix Linux 6 loop device false positives #14

wants to merge 4 commits into from

Conversation

pxlkng
Copy link

@pxlkng pxlkng commented Aug 23, 2023

Removed the --output RO flag from the lsblk call so it can be modified with regular expressions to exclude empty read-write loop devices and strip it down to only the RO output.

This fixes: https://forums.kicksecure.com/t/livecheck-sh-script-broken-on-bookworm/269

Changed the way the lsblk output is generated so it can be modified with regular expressions to exclude empty read-write loop devices and strip it down to only the RO output.
The piping introduced and issue that prevented the `if` from picking up the return value of lsblk.

Moved the piping out of the if-statement.
Fixed some user errors I made in the last commit.
Put variables in quotes so newlines/line breaks are retained.
@pxlkng pxlkng closed this Aug 23, 2023
@pxlkng pxlkng reopened this Aug 23, 2023
- Reworked solution to be easier to understand, simpler and more efficient.
- Corrected spelling
- Added detailed documentation of every step
- Split every step into their own line
- Added simplified explanation of the RegEx
@pxlkng
Copy link
Author

pxlkng commented Aug 23, 2023

  • Reworked solution to be easier to understand, simpler and more efficient.
  • Corrected spelling
  • Added detailed documentation of every step
  • Split every step into their own line
  • Added simplified explanation of the RegEx

@pxlkng pxlkng closed this by deleting the head repository Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant