Skip to content

Conversation

@zdykstra
Copy link
Member

Add a recursive_umount function and use in the chroot helper and when unmounting filesysems just before kexec. This is in place for #770 .

Comment on lines 2288 to 2289
ret=0
if ! umount -R "${mountpoint}" >/dev/null 2>&1 ; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ret=0
if ! umount -R "${mountpoint}" >/dev/null 2>&1 ; then
umount -R "${mountpoint}" >/dev/null 2>&1 && return
ret=0

Then you can drop the big if indent.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call

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.

3 participants