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

Fix ext4 issues with uuidgen #3110

Closed
wants to merge 2 commits into from
Closed

Conversation

dann1
Copy link
Contributor

@dann1 dann1 commented Mar 21, 2019

ext4 single partition images were failing

@@ -512,15 +510,37 @@ def reset_fs_uuid(fs_type, device)
when /xfs/
cmd = "#{COMMANDS[:xfs_admin]} -U generate #{device}"
when /ext/
cmd = "#{COMMANDS[:tune2fs]} tune2fs -U random #{device}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was the main issue, the command was 2 times written

_rc, o, e = Command.execute("#{COMMANDS[:e2fsck]} -f -y #{device}", false)
err = "#{__method__}: failed to resize #{device}\n"

_rc, o, e = check_ext4(device)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

after poweroff they failed to boot again when recreating the fs uuid, it required e2fsck to be run again

@dann1
Copy link
Contributor Author

dann1 commented Mar 21, 2019

Applies to 5.8 as well. Seems 6883f6a wasn't merged in the previous PR. There are other minor improvements as well.

@dann1 dann1 changed the title Issue 3103 Fix ext4 issues with uuidgen Mar 22, 2019
@dann1 dann1 requested a review from rsmontero March 22, 2019 06:58
@rsmontero rsmontero closed this Mar 22, 2019
rsmontero pushed a commit that referenced this pull request Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants