Turn openSUSE 11 Live CD into a ZENworks Imaging Tool

0 Likes

Requirements:




  • Linux Box

  • openSUSE 11 Live CD ISO

  • ISO Editor.

  • squashfs 3.1 tools for Linux

  • ZENworks boot cd / iso



The plan is to take an openSUSE Live boot CD and add the imaging commands and libraries to it.




  1. Copy the ZENworks boot disk ISO onto the Linux box, mount it and copy the root image off the CD.


    The root image path is mnt/boot/i386/ with mnt being the directory that the ISO is mounted.



  • Now we need to mount the root image and copy what we need out of it.


    In the directory that you copied the root image to, use these commands:

      mv root root.gz
    gunzip root.gz
    mkdir image
    mount -o loop root image # this will mount the root archive
    cd image
    # now we want to copy these files
    image/usr/lib/libhwresolve.so.2.2
    image/usr/lib/libtvision.so.0
    image/usr/lib/libhd.so.12
    image/usr/lib/libzisd.so
    image/usr/lib/libzmgtool.so
    image/usr/lib/libzmgerror.so
    image/usr/lib/libdbus-1.so.2
    image/lib/libsysfs.so.1
    image/lib/libc-2.4.so
    image/bin/img



    Now that we have the tools we need the next step is to get the openSUSE Live CD ready.


  • On the Linux box again take the openSUSE Live CD ISO and mount it.


    Copy openSUSE-11.0-read-only.i686-2.7.0 from the top directory of the ISO, this is the Live CD root image that we will be adding the tools to.



    In order to extract and edit openSUSE-11.0-read-only.i686-2.7.0 we need the squashfs tools, more specifically squashfs version 3.1.



  • unsquashfs openSUSE-11.0-read-only.i686-2.7.0



    This will create a directory named squashfs-root.


  • Inside squashfs-root you should see the root directory for the Live CD.


    Move into the var directory, create a directory (mine is img-tools) and copy all the files we got from the ZENworks boot CD.



  • Now we need to add the libraries and the img command, all that is necessary is to copy the files.

    libhwresolve.so.2.2 /usr/lib/libhwresolve.so.2.2
    libtvision.so.0 /usr/lib/libtvision.so.0
    libhd.so.12 /usr/lib/libhd.so.12
    libzisd.so /usr/lib/libzisd.so
    libzmgtool.so /usr/lib/libzmgtool.so
    libzmgerror.so /usr/lib/libzmgerror.so
    libsysfs.so.1 /lib/libsysfs.so.1
    libdbus-1.so.2 /usr/lib/libdbus-1.so.2
    libc-2.4.so /lib/libc-2.4.so
    img /usr/bin/img




  • Inside the directory img-tools create a link to libc-2.4.so
    ln -s  libc-2.4.so libc.so.6 



    The image now is ready to be repacked and added back to the Live CD ISO.



    To repack the squashfs file system run:
    mksquashfs squashfs-root openSUSE-11.0-read-only.i686-2.7.0



    All that is left is to add the read only file system back into the ISO and reburn it and that is it.



    Once booted to the CD run sudo img or su as root and you are ready to image.




Labels:

How To-Best Practice
Comment List
Anonymous
Parents
  • I waiting that Novell releases unoffical/unsupported Zenworks Bootcd build of OpenSuse. Next best thing what i can get is this kind of guide that helps me to create my own bootcd...

    ...big thanks to sgreenmyer!! I really hope that this works for me!

    Next to Novell:
    How it is possible that this kind of enterprise class software like ZfD uses old kernel (and nic/chipset drivers) that does not work with new workstations! Our "new" workstations are more than half year old (HP enterprise brand). This is not new problem, so i can't understand why isn't fixed yet.

    Why novell does not offer bootcd that includes newest kernel and drivers? This version does not need be offically supported (of course), but so what if it works!! Now I have supported bootcd that does not work with our new computers, because it includes too old kernel. So compliting new drivers is not solution.

    Zenworks is great product, but workstation imaging (bootcd) is really pain in real life!
Comment
  • I waiting that Novell releases unoffical/unsupported Zenworks Bootcd build of OpenSuse. Next best thing what i can get is this kind of guide that helps me to create my own bootcd...

    ...big thanks to sgreenmyer!! I really hope that this works for me!

    Next to Novell:
    How it is possible that this kind of enterprise class software like ZfD uses old kernel (and nic/chipset drivers) that does not work with new workstations! Our "new" workstations are more than half year old (HP enterprise brand). This is not new problem, so i can't understand why isn't fixed yet.

    Why novell does not offer bootcd that includes newest kernel and drivers? This version does not need be offically supported (of course), but so what if it works!! Now I have supported bootcd that does not work with our new computers, because it includes too old kernel. So compliting new drivers is not solution.

    Zenworks is great product, but workstation imaging (bootcd) is really pain in real life!
Children
No Data
Related Discussions
Recommended