provide warning to user about bad media when running installer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calamares-settings-ubuntu (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Right now, we have this great check running at boot that tests the integrity of various files contained on the ISO. Previously, it interrupted the boot process but would report to the user whether or not a failure occurred. Recent changes have made this test silently run in the background. It's plausible it can still be running *after* the GUI loads. That's neat stuff, but there's no feedback to the user.
A file by the name of casper-
{
"checksum_
"./
],
"result": "fail"
}
In turn, the results are reported by apport in any bugs filed.
Bug 1918733 was created to resolve this issue, but was marked Won't Fix, at least for casper. In that bug, it was suggested that the various installers would implement this in some way. Therefore, this bug exists to resolve it in Calamares.
My proposed fix is a simple shell script or a small Python program. It would be run before Calamares via the customized Desktop Entry (i.e. the one that's on the desktop). I'm thinking of this instead of doing it in Calamares as it will not allow us to create random dialogs. kdialog would, though, so we should add that to the live seed and use that. I would suggest that we run this with ; and not && because we don't want a minor logic failure or something to prevent installation altogether. Also, I don't think we want to get heavy handed. There may be a reason one may want to continue with bad media (e.g. for testing).
The logic would be something like this:
1. Check the status of the systemd casper-
2. If the service is still running, wait for a given timeout
3. If the timeout is reached and the service is still running, exit gracefully (maybe submit a bug? or record the problem somewhere?)
4. Parse the results
5. Warn the user but do not prevent them from continuing
ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: calamares-
ProcVersionSign
Uname: Linux 5.10.0-14-generic x86_64
ApportVersion: 2.20.11-0ubuntu60
Architecture: amd64
CasperMD5CheckM
CasperMD5CheckR
CasperVersion: 1.460
CurrentDesktop: LXQt
Date: Tue Mar 16 18:33:36 2021
LiveMediaBuild: Lubuntu 21.04 "Hirsute Hippo" - Alpha amd64 (20210311)
PackageArchitec
SourcePackage: calamares-
UpgradeStatus: No upgrade log present (probably fresh install)