summaryrefslogtreecommitdiff
path: root/image/backends
AgeCommit message (Collapse)AuthorFilesLines
2024-10-04image: ISO backend: Bail out on umount failureA. Wilcox1-2/+8
Only if the error is EBUSY - which implies there *is* a filesystem mounted at the specified path - we treat umount as an error and stop. This should prevent /dev from being erased host-side.
2024-10-04image: tar backend: Set C++ locale to C.UTF-8A. Wilcox1-1/+3
This ensures that boost::filesystem uses UTF-8 for filenames. Closes: #381
2024-10-04image: tar backend: Be noisierA. Wilcox1-0/+3
It is more reassuring to know that the process is running, and when it finishes successfully, rather than just a 'stuck' terminal with no displayed progress.
2024-10-04image: ISO backend: Recursively umount if busyA. Wilcox1-1/+3
If an image creation run is interrupted (i.e. ^C) and the target FSes aren't umounted, the ISO backend tries to umount them during creation. However, it doesn't recursively umount /dev or /sys, which leaves them mounted (with an EBUSY error). This leads to the fs::remove_all call clearing out /dev nodes, which has personally irked me many times. Now we retry with recursion when we hit EBUSY, so that this won't happen.
2024-10-04image: backends: Implement a cleanup() methodA. Wilcox4-0/+25
This allows backends to implement their own handling of target umounts. Notably, the tar backend already umounts the target /dev /proc /sys, so our hardcoded cleanup in the Creator caused unnecessary and confusing error output when umount was run a second time. Closes: #345
2023-12-01Add 'rootshell' key to determine root's shellA. Wilcox1-5/+0
* Key added to code and documentation. * Tests added and pass locally on gwyn (ppc64) and fran (aarch64). * Qt UI automatically sets /bin/zsh as root's shell (ref: packages#206). * ISO image creator backend no longer has root shell hack.
2023-10-27image: Tar backend: Enable xz threading supportA. Wilcox1-0/+5
This should enable tarballs to be created significantly faster on systems with more than one processor.
2023-10-05image: ISO backend: Probe GRUB version as wellA. Wilcox1-0/+6
Fixes: #335
2023-09-05image: ISO backend: Probe xorriso before startingA. Wilcox1-0/+6
Ensures that the user's time isn't wasted if xorriso is missing.
2023-09-05image: Tar backend: Fix upsA. Wilcox1-10/+26
* Use <filesystem> portably. * Create the target directory if it doesn't exist. * Fix symlink detection bug that could cause target mtab to halt image creation.
2023-03-25image: C++2x and Boost.Filesystem fixesA. Wilcox2-9/+10
* Ensure that Boost.Filesystem is still usable. * Don't use a reference to a temporary in loops. Fixes: #333
2020-10-15image: Tar backend: Fix symlink issuesA. Wilcox1-4/+11
2020-09-20ISO backend: Call dracut in chrootA. Wilcox1-4/+9
2020-08-29image: Convert custom cdinit to DracutA. Wilcox2-94/+22
2020-06-23image: ensure init is executable in initrdA. Wilcox1-0/+1
2020-06-22CMake: Add BUILD_ISO option to toggle ISO generation supportA. Wilcox1-1/+4
2020-06-13image: Add 'keep' option to ISO backendA. Wilcox1-1/+1
2020-06-03image: ISO: Try harder to umount before rm -rfA. Wilcox1-4/+13
2020-06-03image: ISO: Allow live account to log in without pwA. Wilcox1-0/+1
2020-06-03image: ISO: Add root pw note to /etc/issueA. Wilcox1-0/+2
2020-06-03image: ensure entire line from iso-params file is readMax Rees1-1/+1
2020-06-03image: fix a few paths from escaping target/Max Rees1-3/+3
2020-06-03image: Finish implementing ISO backendA. Wilcox2-24/+380
2020-05-29image: Support backend optionsA. Wilcox3-21/+42
2020-05-28image: Put target inside ir_dir, add WIP ISO backendA. Wilcox3-3/+174
ir_dir used to be the target; now the target is inside ir_dir so backends have the choice of making other directories inside ir_dir if needed.
2020-05-13image: TAR: Force UTF-8 pathnames alwaysA. Wilcox1-3/+3
2020-05-07image: Add functional TAR backendA. Wilcox2-2/+69
2020-04-02image: Truly dynamic backend registrationA. Wilcox4-8/+132
This allows one backend to provide multiple types. For example, our TarBackend can provide optional .gz, .bz2, and .xz compression.
2020-04-02image: Actually make backends registerableA. Wilcox3-15/+24
2020-04-02image: Significantly refactor how backends are registeredA. Wilcox3-34/+17
2020-04-01image: Initial work on backend supportA. Wilcox5-5/+135
2020-03-24Add the beginnings of the Image Creation utilityA. Wilcox1-0/+89