Skip to content

bind-mount /run from inst-sys to target system during install (bsc#1136463)#958

Merged
wfeldt merged 2 commits into
masterfrom
sw_26
Aug 30, 2019
Merged

bind-mount /run from inst-sys to target system during install (bsc#1136463)#958
wfeldt merged 2 commits into
masterfrom
sw_26

Conversation

@wfeldt
Copy link
Copy Markdown
Member

@wfeldt wfeldt commented Aug 29, 2019

Problem

https://bugzilla.suse.com/show_bug.cgi?id=1136463

Files in /run are needed also in the target system during installation.

That's basically bnc#717321 but again for storage-ng.

Solution

Bind-mount /run into target system.

See also

https://bugzilla.suse.com/show_bug.cgi?id=717321

Same issue in SLE12, fixed in old storage stack.

https://github.com/yast/yast-storage/blob/SLE-12-SP5/src/clients/inst_prepdisk.rb#L143-L166

Testing

Tested manually.

…36463)

That's basically bnc#717321 but for storage-ng.
@coveralls
Copy link
Copy Markdown

coveralls commented Aug 29, 2019

Coverage Status

Coverage increased (+0.0002%) to 97.626% when pulling 1f5a561 on sw_26 into 9bc6e19 on master.

@kobliha
Copy link
Copy Markdown
Member

kobliha commented Aug 29, 2019

Just a note: See https://github.com/yast/yast-packager/blob/d4a21e0ac882b23b68a935367b89e8a1ca6fb273/src/clients/inst_kickoff.rb#L32-L45

We already similarly mount /dev/ at a different place. I even thought we did it for more...

@wfeldt
Copy link
Copy Markdown
Member Author

wfeldt commented Aug 29, 2019

I've seen it.

Still, the canonical place seems to be inst_prepdisk as that's the place used also in the old storage times.

Of course, we unmount /run in umount_finish...

Copy link
Copy Markdown
Contributor

@ancorgs ancorgs left a comment

Choose a reason for hiding this comment

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

LGTM. I'm just curious about why we left /run out when we ported this from storage to storage-ng initially (done here #108). But since I didn't find any reason or explanation for that in Trello or Bugzilla, I guess there was no good reason and bringing it back is correct.

@wfeldt wfeldt merged commit 9da4ea1 into master Aug 30, 2019
@wfeldt wfeldt deleted the sw_26 branch August 30, 2019 09:36
@yast-bot
Copy link
Copy Markdown

✔️ Public Jenkins job #200 successfully finished
✔️ Created OBS submit request #727182

@yast-bot
Copy link
Copy Markdown

✔️ Internal Jenkins job #25 successfully finished
✔️ Created IBS submit request #199918

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.

5 participants