Comments (11)
cubic --verbose > log.txt :
log.txt
on line 1111 it says [Errno 2] No such file or directory:
'/home/ascend910/cubic/Winux7Basic/c
ustom-disk/EFI/boot/bootx64.efi'
But the file does exist
ls /home/ascend910/cubic/Winux7Basic/custom-disk/EFI/boot
bootia32.efi bootx64.efi grubx64.efi
weirdly bootx64.efi is red maybe a problom with Cubic unpacking the iso???
from cubic.
Red usually means this is a link to a file, and the file it links to does not exist.
You can see which file this links points to by typing
ls -la
...or...
readlink -f bootx64.efi
Nevertheless, thank you for attaching your log file; I'll look into this.
from cubic.
For reference, the relevant portion of the log file is...
• Exclude files from the checksum........ ['/home/ascend910/cubic/Winux7Basic/
custom-disk/md5sum.txt', '/home/asce
nd910/cubic/Winux7Basic/custom-
disk/isolinux/isolinux.bin', '/home/
ascend910/cubic/Winux7Basic/custom-
disk/isolinux/boot.cat']
• Get relative file paths in the
directory.............................. /home/ascend910/cubic/Winux7Basic/cu
stom-disk
• Write to file.......................... /home/ascend910/cubic/Winux7Basic/cu
stom-disk/md5sum.txt
• Unable to calculate the md5 hash for
file................................... EFI/boot/bootx64.efi
• The exception is....................... [Errno 2] No such file or directory:
'/home/ascend910/cubic/Winux7Basic/c
ustom-disk/EFI/boot/bootx64.efi'
• The trace back is...................... Traceback (most recent call last):
File "/usr/share/cubic/cubic/utiliti
es/file_utilities.py", line 916, in
calculate_md5_hash with
open(full_file_path, 'rb') as file:
^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such
file or directory: '/home/ascend910/
cubic/Winux7Basic/custom-
disk/EFI/boot/bootx64.efi'
• Error.................................. Unable to update checksums
• The exception is....................... [Errno 2] No such file or directory:
'/home/ascend910/cubic/Winux7Basic/c
ustom-disk/EFI/boot/bootx64.efi'
• Do not propagate exception............. [Errno 2] No such file or directory:
'/home/ascend910/cubic/Winux7Basic/c
ustom-disk/EFI/boot/bootx64.efi'
from cubic.
ls -la:
lrwxrwxrwx 1 ascend910 ascend910 36 Feb 9 13:42 bootx64.efi -> /etc/alternatives/shimx64.efi.signed
readlink -f bootx64.efi:
/etc/alternatives/shimx64.efi.signed
from cubic.
bootx64.efi
is a link to /etc/alternatives/shimx64.efi.signed
, but /etc/alternatives/shimx64.efi.signed
doesn't exist.
I've downloaded the linuxmint-21.3-cinnamon-64bit.iso ISO you shared...
- I see that
<ISO>/EFI/boot/bootx64.efi
is a link. - This link does point to
<ISO>/etc/alternatives/shimx64.efi.signed
. - However, there is no
/etc
directory on the ISO.
I compared this to linuxmint-21.1-cinnamon-64bit.iso
.
- This 2.21 ISO does not have this superfluous link in the
<ISO>/EFI/boot/
directory.
Therefore, this is a bug in the Linux Mint 21.3 ISO.
However, I will modify Cubic to ignore missing files (i.e. broken links) when calculating the checksum.
It will take me a few day to issue a new Cubic release.
In the meant time, you might want to open a bug with Linux Mint to correct this issue at the source.
from cubic.
ok thx :)
from cubic.
This is interesting.
I just tested Cubic using the linuxmint-21.3-cinnamon-64bit.iso file you linked to above.
I did not get the same error as you reported.
Even though, <ISO>/EFI/boot/bootx64.efi
is a broken link, it should still have a md5 checksum.
It is also a file that appears on the ISO, and all files on the ISO need a checksum.
So my original idea, to not calculate the checksum for broken symlinks, is not the correct approach.
Which OS and version are you running Cubic in?
lsb_release --all
Which version of Python do you have?
python3 --version
from cubic.
On your system (where you run Cubic), what are the outputs of these commands:
cd /home/ascend910/cubic/Winux7Basic/custom-disk/EFI/boot/
readlink -f bootx64.efi
file bootx64.efi
file `readlink -f bootx64.efi`
md5sum bootx64.efi
md5sum `readlink -f bootx64.efi`
from cubic.
Update:
I did not get the same error as you reported.
My host system is Ubuntu, and the <ISO>/EFI/boot/bootx64.efi
actually resolves to /etc/alternatives/shimx64.efi.signed
which exists on my system.
I suspect you are running Cubic with Linux Mint as your host OS, and /etc/alternatives/shimx64.efi.signed
does not exist on a Linux Mint install. (Or perhaps, you do not have an EFI system).
I checked the man page for md5sum
, but there was no explanation of how it behaves with symlinks.
However, I did find this accepted answer on stackoverflow which indicates that md5sum
always follows symlinks and does not treat symlinks as individual files.
Note: Although Cubic does not directly invoke the md5sum
command, the behavior of Cubic's implementation must be the same as the md5sum
command.
from cubic.
The solution will be to not calculate the checksum for files that are symlinks.
Additionally, symlinks will not be listed in the md5sum.txt
file (although the target files will still be listed along with their corresponding checksums).
from cubic.
Fix released in version 2024.02-86.
Please test, and report any issues.
from cubic.
Related Issues (20)
- Have problems if editing an Ubuntu noble ISO in an host Ubuntu Focal ? HOT 4
- Ubuntu 24.04 (beta) bootstrapper/installer seemingly crashes under install of live image
- Cubic reference removal from project HOT 4
- Any plans to make cubic properely support ubuntu 24.04? HOT 3
- Cubic breaks iso HOT 2
- Why can't I access the Typical and Minimal packages page? HOT 2
- Missing user after new install of Ubuntu 22.04 HOT 3
- How to customize the Plymouth Splash Screen on Ubuntu 24.04?
- Virtual environment state save HOT 1
- multi-user mode broken on 24.04 variants
- generated .iso doesn't boot once burnt to USB stick
- Cubic doesn't work together with autoinstall identity. HOT 1
- 24.04 Custom ISOs not reflecting snap removals / some installed app icons not displayed HOT 2
- Errors when install cubic on ubuntu 24.04 HOT 2
- i have error while mount Ubuntu 18.04 on cubic HOT 1
- cubic project folder selection page HOT 2
- Change Kernel version in Virtual Environment HOT 2
- Cubic can be exploited to allow an unprivileged user to elevate their privileges to root on the host system HOT 3
- How to prevent single user mode from GRUB in debian? HOT 5
- After booting created ISO it looks like broken installed OS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cubic.