-
Notifications
You must be signed in to change notification settings - Fork 25
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
File "alez-downloader.sh" referenced in ISO self-creation instructions txt no longer exists in repo #69
Comments
I did investigate the git history and I see this closed issue referenced #42 which seems to indicate that Docker is now the recommended way to get an updated ISO file? |
Update: I tried the Docker method and couldn't get a build to complete, error on step 14/17:
|
I'd be willing to help update this and submit a PR but I'm more of an Elixir dev and not a sysadmin (for example, I didn't understand SOME of the bash syntax in Lastly, I'd recommend going with ONE OFFICIAL way of generating the ISO yourself instead of "maybe this bash script or maybe this dockerfile" Lastly lastly, did something political happen with regards to ZFS and Linux distro support a year ago (other than the usual "the ZFS license is nonpermissive/still owned by Oracle")? If so, I missed the memo. A lot of zfs-related Linux projects I'm finding on ye olde Internets seem to have not been updated in over a year... might have something to do with openzfs 2.0 complicating things, or pandemic, or loss of interest, or who knows what... |
Sorry for the late reply on this. I don't really have a lot of time to continue maintaining this project, and I don't believe @danboid does either. That said I'm perfectly happy to assist someone who would like to fix up whatever remaining issues there are. As well as review any new code that is required. It was working fine before, but due to some changes to archiso, the way we were generating ISOs stopped working and I didn't have the motivation or time to get it working again. I can try to reproduce your error this weekend, and see what might be the problem in building the image. |
I get that... appreciate the response regardless! And I'm paying attention! Let me know if I can be of any assistance |
@pmarreck OK, it now builds, archiso switched to mkarchiso, so changes were needed. I haven't tested building an ISO, but we're closer now, the image builds. Its possible more mkarchiso related changes are needed. |
Nice, I will play with it in the next couple of days! |
I was able to build it via Docker! Will try building an ISO next but what you saw might happen is likely |
seems easy enough to fix, just specify a profile_dir, but I have no idea what the concept of a "profile" is regarding mkarchiso ;) |
https://www.reddit.com/r/archlinux/comments/jkg40r/archiso_build_error/ This might have the solution on how to invoke it properly now; this person had to find the answer in the mailing list archives, so I guess it wasn't terribly well documented and/or clear. Unfortunately I'm currently out of time |
I got it to work!!
I then just modified the last CMD line in the Dockerfile to pass the working directory in as a parameter:
Then I rebuilt the Docker image and reran it with:
It took a few minutes (and seemed to do nothing for the first 2 minutes or so, FYI) but then the fans spun up and soon enough I had an ISO outfile! |
If everything works a PR would be much appreciated |
I booted off the image and trying to run the “alez” command at the root prompt gives a zsh permission error… as root… which I’ve never encountered before. Not sure how to fix that but I can send over a WIP PR soon |
PR: #70 Also, in previous comment I said "zfs" when I meant "zsh" (now edited). Important difference, that :) |
I'd love to come up with an automated test that somehow persists through reboots (probably just by driving this from outside via Docker) but I'm not sure how to do procedural I/O with an interactive script running inside a Docker image... would be cool, though... it's probably googleable, maybe something like this to convert the generated ISO into a Docker image and then drive that from the outside somehow: https://www.techrepublic.com/article/how-to-convert-an-iso-to-a-docker-image/ |
I added test code in a new commit that builds the docker image, runs it which generates the ISO, and then runs the ISO using qemu and a helper script (new deps are listed inside the |
Progress update: I got past the security issue and got the installer to run once the image was built and up by running THEN it ran! I actually don't know offhand how to make those changes (add |
Note: The keyserver URL's in the script need to be updated since the sks keyservers are apparently a GDPR casualty and have been taken down. keyserver.ubuntu.com may work; see https://www.reddit.com/r/archlinux/comments/oybjij/pgp_keys_fubar/ But this may not work as I'm currently running the script in a "debug mode" having removed all redirects of output to |
Thank you for your hard work, i've just been really busy these past few weeks. I hope to take a look at your PR when I get a chance. |
Don't worry! Just pushed up an additional commit that should aid when debugging the script. Basically if you run alez with |
Have to say I'm not used to coding without tests (for years now) and it's quite easy to accidentally introduce bugs when refactoring anything without a test suite (especially in Bash!); I investigated ways to test bash shell scripts (BATS was one thing) but the rabbit hole seemed a little deeper of a commitment than I felt comfortable with changing/adding |
I emailed you btw. |
Ha, I've been terrible at email management. |
Pushed up another commit with some changes/fixes and cleanups. Added the option to specify a virtual block device to the qemu ISO runner. The Still investigating what an actual end to end test suite might look like, in particular 1) what test library to use; ShellSpec looks the most full-featured but I don't like its Cucumber-like wordiness (Cucumber once left a bad taste in my mouth years ago), 2) how to drive the Fun weekend times. ;) I know you're busy, no rush, look forward to your thoughts when you have time. |
ALEZ/create-alez-iso.txt
Line 48 in cbda8a4
Basically, I want to play with a build of this. ;)
The text was updated successfully, but these errors were encountered: