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

consistent umount #264

Merged
merged 3 commits into from
Dec 23, 2023
Merged

consistent umount #264

merged 3 commits into from
Dec 23, 2023

Conversation

adrelanos
Copy link
Contributor

fixes #263

based on #262

Not sure if it is acceptable here to have one PR based on top of another.

@mika mika merged commit 80aa224 into grml:master Dec 23, 2023
28 of 40 checks passed
jkirk added a commit to jkirk/grml-debootstrap that referenced this pull request Feb 2, 2024
try_umount() replaced all umount calls in PR grml#264.

Unfortunately, the function is defined too late for a few of functions,
especially for cleanup(), which fails with:

   -> Failed (rc=1)
  /sbin/grml-debootstrap: line 260: try_umount: command not found
  Unexpected non-zero exit code 127 in /sbin/grml-debootstrap /sbin/grml-debootstrap /sbin/grml-debootstrap /sbin/grml-debootstrap /sbin/grml-debootstrap at line 260 329 1107 1179 0 detected!
  last bash command: try_umount 3 "${MNTPOINT}"/boot/efi
   -> Failed (rc=1)
  /sbin/grml-debootstrap: line 260: try_umount: command not found

Moved the try_umount above cleanup().

Closes: grml#271
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.

let's always use try_umount
2 participants