The program "makeboot.sh" is actually a legacy program. For the uEFI
system nowadays normally it's no need to use it anymore.
Of course we can improve it by check /proc/partitions to see if the
partition exists.
Normally it's better to run syslinux/extlinux in the partition which is
not mounted. That's why it's not check with the file /proc/mounts.
In addition, the function is_function is to check if the device name is
really a partition because syslinux will only work when it's a
partition, not a whole disk (e.g., /dev/sda).
Steven
On 12/13/25 00:46, Jean Pierre De Schacht via Clonezilla-live wrote:
Hi,
Clonezilla version: clonezilla-live-20251203-questing-amd64.zip
Script makeboot.sh
Function is_partition
The function does NOT check for existence of a partition.
e.g for a device device sda with partitions sda1 and sda2,
is_partition /dev/sda2025 returns true.
Is this intended behaviour or is it a bug?
Further on in the script you check for existence against /proc/mounts.
Why not do that in the function is_partition?
Jean Pierre
_______________________________________________
Clonezilla-live mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clonezilla-live
--
Steven Shiau <steven _at_ stevenshiau org>
Public Key Server PGP Key ID: 4096R/163E3FB0
Fingerprint: EB1D D5BF 6F88 820B BCF5 356C 8E94 C9CD 163E 3FB0
_______________________________________________
Clonezilla-live mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clonezilla-live