Menu

#19 ocs-iso functionality broken when booting via network PXE

Unstable_(example)
closed-fixed
None
5
2022-04-21
2022-03-29
No

Clonezilla ultimately can't find vmlinuz or initrd files since they're not in the filesystem.squashfs.

This may be the intended functionality, in which case it's probably better to inform the user specifically.

Please see the attached patch for extra details.

1 Attachments

Discussion

  • Steven Shiau

    Steven Shiau - 2022-04-04

    For PXE booting, definitely you have to specify vmlinuz and initrd outside the root file system (filesystem.squashfs). We never have this issue with the original ocs-iso.
    How did you setup your PXE in the server so that you have to patch the ocs-iso?

    Steven

     
  • Constantino Michailidis

    The directory structure is as so:

    .
    ├── efi32
    │   ├── ldlinux.e32
    │   └── syslinux.efi
    ├── efi64
    │   ├── ldlinux.e64
    │   └── syslinux.efi
    ├── filesystem.squashfs
    ├── initrd.img
    ├── ldlinux.c32
    ├── notes.txt
    ├── pxelinux.0
    ├── pxelinux.cfg
    │   └── default
    └── vmlinuz
    
    3 directories, 11 files
    

    Also, you may find my pxelinux.cfg/default file attached.

     
    • Steven Shiau

      Steven Shiau - 2022-04-04

      It's the same thing we use here. We have used the original one in Clonezilla lite server and it does work well. Therefore I do not think this patch is required.
      Thanks anyway.

      Steven

       
      • Constantino Michailidis

        You're saying I should be able to create an iso when clonezilla is PXE booted from the network, correct?

        I wonder what's causing this error message then?

         
        • Steven Shiau

          Steven Shiau - 2022-04-06

          So under which GNU/Linux did you run that?
          It's recommended to run in Clonezilla live environment, as mentioned here:
          https://clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/doc/04_Create_Recovery_Clonezilla

          Steven

           
          • Constantino Michailidis

            Since I have ocs_daemonon="ssh" set, I was logged in via ssh... it makes testing easier. The strange colors are custom for my rxvt-unicode terminal via ~/.Xresources :-)

            So the screenshot is of a clonezilla live environment (PXE booted from the network). Naturally, the same problem happens at a console... but, again, only if clonezilla is PXE booted from the network.

            I think you should be able to reproduce the problem without much trouble.

             
            • Steven Shiau

              Steven Shiau - 2022-04-16

              Oh, please forgive me. I finally understood what you meant. So you boot Clonezilla live via netboot, and want to run ocs-iso to create a recovery iso file. Yes, in that case, that's true.
              Will try to improve ocs-iso and ocs-live-dev based on your patch. Thanks.

              Steven

               
  • Constantino Michailidis

    Also, assuming the patch is useful, I copy/pasted the following bash string replacement to report the script name:

    ${0##*/}
    

    but in retrospect, I think this one is more readable:

    ${0/#*\//}
    

    and may amount to the same thing; I'm certainly not the final authority on bash scripting.

    :-/

     
  • Steven Shiau

    Steven Shiau - 2022-04-21

    This issue was addressed in Clonezilla live >= 3.0.0-18 and 20220419-*:
    https://clonezilla.org/downloads.php
    Please give it a try and let us know the results.
    Thanks.

    Steven

     
    • Constantino Michailidis

      I saw the message. Looks good... very helpful and informative IMHO.

       
  • Steven Shiau

    Steven Shiau - 2022-04-21
    • status: open --> closed-fixed
    • assigned_to: Steven Shiau
     
  • Steven Shiau

    Steven Shiau - 2022-04-21

    Great. Thanks for confirming that.

    Steven

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.