-
Notifications
You must be signed in to change notification settings - Fork 164
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
installer: Find persist partition when installing into another disk #4277
Conversation
d23e151
to
ae9a6ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@rene does this need to be backported i.e., should we add the stable label? |
@eriknordmark , I've checked stable branches, yeah, we need to backport this fix... I'm working on it.... |
ae9a6ed
to
8783a27
Compare
Last updates:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good.
Although the installer code is hard to follow =(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-run tests
@rene, could you please rebase the PR to the master? It may help fix the build |
When installing persist into another storage device, the installer script must search for the persist partition (and mount it) in the corresponding destination and not in the main storage device. This can be achieved by simply looking to INSTALL_PERSIST variable instead of INSTALL_DEV. Signed-off-by: Renê de Souza Pinto <[email protected]>
8783a27
to
c14911a
Compare
done. |
🤞🤞🤞 |
Description
When installing persist into another storage device, the installer script must search for the persist partition in the corresponding destination and not in the main storage device.
How to test
First, build the installer raw image (to create all needed files):
$ make installer-raw $ make run-installer-raw # it doesn't need to run QEMU, that's only for build OVMF files
After that, create an additional disk image file for the persist and call qemu accordingly:
After boot, the GRUB options can be added manually: