| Summary: | Enable users to specify the mirror port in Installer | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Jybz <j.biernacki+mga> |
| Component: | Installer | Assignee: | Mageia tools maintainers <mageiatools> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | fri, mageia, ouaurelien, pterjan, thierry.vignaud |
| Version: | 8 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | http://gitweb.mageia.org/software/drakx/tree/mdk-stage1/ | ||
| Whiteboard: | |||
| Source RPM: | drakx-installer-images-2.82-2.mga8.src.rpm | CVE: | |
| Status comment: | |||
| Attachments: | Quick untested patch | ||
|
Description
Jybz
2021-02-16 10:53:49 CET
Thank you for this detailed report & supporting evidence.
This is so precise, you should become a packager.
> I try the netinstall in order to use my local repository.
> But first I was unable.
It would be useful to know why you were unable; and why the hardcoded '80' did not work for you.
Assigning to the tools group anyway. Guessed the SRPM.CC:
(none) =>
lewyssmith Even if this is reported against our Installer, I add some word in title. This is for DrakX stage 1. CC:
(none) =>
ouaurelien Care to suggest a patch? CC:
(none) =>
thierry.vignaud > Thank you for this detailed report & supporting evidence. > This is so precise, you should become a packager. Thank you, I tried to do the apprentice ship, but we are lost, my mentor seems overloaded, I don't know where we are, except that I'm faaar from being a packager. See : > https://wiki.mageia.org/en/Becoming_a_Mageia_Packager#Apprenticeship_in_progress I should not edit it myself to add the bug report or anything, it is not acceptable. I would disagree that someone is filling it for himself, it is like a lack of trust. > It would be useful to know why you were unable; and why the hardcoded '80' did not work for you. There are few possible reason, like - 80 is a port below 1024, a restricted port, where a specific setup is needed, like apache server or nginx... - a web server is already running on this port 80, a webserver maybe incompatible in its configuration (a different partition, file location, output limits, or maybe to set up a mirror only locally and having a webserver reachable outside home) On my side, my mirror is on a small single board computer armv7 BananaPro. I launch the server when I need it as legacy user with > cd /mnt/disk/mirror/ > python3 -m http.server 8888 When I'm done, like finishing updates, I shutdown down the mirror web server. And to update my mirror > rsync -aHSv --delete-after --delay-updates rsync://${UPSTREAM_MIRROR_ROOT}/${VERSION}/ ./${VERSION} 2>&1 I don't want to use the port 80 here. how can i build a netinstall for jybz ? I rebuilded locally drakx-installer-binaries with the patch but i miss the next step. Can someone help me ? CC:
(none) =>
mageia install the drakx-installer-binaries, rebuild drakx-installer-images, extract iso from images rpm Note that it was possible to build stage1 as a standalone tool for testing/debugging. I'ven't attempted that for a long time but it should still be possible. See https://wiki.mageia.org/en/Stage_One_install#Debugging_and_testing_the_stage1_on_a_test_machine_with_tftp @neoclust: drakx-installer-binaries (aka stage1) code is there: http://gitweb.mageia.org/software/drakx/tree/mdk-stage1 If you want to do the full/slow way: You can just patch & build drakx-installer-binaries with the above patch. Then install the resulting package. Then rebuild drakx-installer-images Then boot a VM with the iso file from the newly generated drakx-installer-images: rpm2cpio RPMS/x86_64/drakx-installer-images-2*.x86_64.rpm |cpio -id '*.iso' mv usr/lib64/drakx-installer-images/install/images/Mageia-Cauldron-netinstall-x86_64.iso Mageia-Cauldron-netinstall-x86_64-auto.iso Sorry wrong link: https://wiki.mageia.org/en/Stage_One_install#Debugging_the_stage1_using_testing_mode Before of not rebooting though… Any update ? Any update ? Can you test the patch? I guess I could build a local image and check it still works w/o providing a port… @Thierry: do you think you can create an image ? for Jybz to test Fixed in git. Tested with: - no port provided (default) - explicit 8080 - explicit 80 Status:
NEW =>
RESOLVED (In reply to Nicolas Lécureuil from comment #14) > @Thierry: do you think you can create an image ? for Jybz to test Current images from https://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/x86_64/install/images/ are good to use. Maybe update mga8 netinstaller too? CC:
(none) =>
fri Nope, the mga8 installer is frozen. We can backport the fix into the drakx mga8 branch in case we would do a mga8.1 release. But we would first have to get Jybz test result. Note that the mga9 boot.iso can be used to install mga8. Just pick your own local mirror I just try it. It works ! With the cauldron netinstall image I could install mga8 on a virtualbox with a local mirror on my network behing the 8888 port. But... Maybe I miss a step, I got the pointer of SDDM with a black screen. I could login as root on tty2 and try urpmi --auto-update, everything was uptodate and I checked the serverlog, all requests were there. So I confirm, it works. |