First off, your program works great and I love it!
But....I will be using Clonezille to clone multiple OS's on multiple boxes with variations among the images so I will have lots of images to say the least. So I'm looking for a way to customize the menu in Clonezilla to break down the choices of images like:
type of computer -> OS -> imagine type (ie. factory install, updated software, etc)
Do you know of an easy way, or where i can edit the code to add those choices in??
Thanks
John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
John,
If you can find the rules of your image name, and what you need is to restore, I would suggest you use fixed parameters of /opt/drbl/sbin/ocs-sr, and use "dialog" or "whiptail" to let your user to select image name only.
Hope you know what I described.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Steven,
I'm not sure if i fully understand what you mean and vice versa. Right now I have over 70 images and we have to scroll through most of them to find the one we want. These images will be increasing to many more. I was kinda hoping to make it easier on the user by adding a hierarchical structure type menu so we could separate the images into different categories. So when the user gets to the "Choose the image file to restore:" they will see something like Dell, Sony, Gateway, etc... After choosing the type they could choose an operating system and then finally choose the image for that computer which will be named factory install, fully updated, etc. Hope this makes more sense and is fairly an easy fix for me. Thanks again,
John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
John,
Actually there is a workaround for you, i.e., you can put the images on different dirs instead of /home/partimag, e.g.
/images/Dell
/images/HP
/images/Acer
Then you can ask your user to choose Dell, HP, or Acer. Once you got the dir name, you can use mount command to remount it as /home/partimag, i.e. when user choose "Acer"
You can run the command first:
mount --bind /images/Acer /home/partimag/
Then everything is back to normal Clonezilla menu.
You may refer to the program /opt/drbl/sbin/prep-ocsroot, check the function "do_mount_local_dev".
Hope this helps.
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First off, your program works great and I love it!
But....I will be using Clonezille to clone multiple OS's on multiple boxes with variations among the images so I will have lots of images to say the least. So I'm looking for a way to customize the menu in Clonezilla to break down the choices of images like:
type of computer -> OS -> imagine type (ie. factory install, updated software, etc)
Do you know of an easy way, or where i can edit the code to add those choices in??
Thanks
John
John,
If you can find the rules of your image name, and what you need is to restore, I would suggest you use fixed parameters of /opt/drbl/sbin/ocs-sr, and use "dialog" or "whiptail" to let your user to select image name only.
Hope you know what I described.
Steven,
I'm not sure if i fully understand what you mean and vice versa. Right now I have over 70 images and we have to scroll through most of them to find the one we want. These images will be increasing to many more. I was kinda hoping to make it easier on the user by adding a hierarchical structure type menu so we could separate the images into different categories. So when the user gets to the "Choose the image file to restore:" they will see something like Dell, Sony, Gateway, etc... After choosing the type they could choose an operating system and then finally choose the image for that computer which will be named factory install, fully updated, etc. Hope this makes more sense and is fairly an easy fix for me. Thanks again,
John
John,
Actually there is a workaround for you, i.e., you can put the images on different dirs instead of /home/partimag, e.g.
/images/Dell
/images/HP
/images/Acer
Then you can ask your user to choose Dell, HP, or Acer. Once you got the dir name, you can use mount command to remount it as /home/partimag, i.e. when user choose "Acer"
You can run the command first:
mount --bind /images/Acer /home/partimag/
Then everything is back to normal Clonezilla menu.
You may refer to the program /opt/drbl/sbin/prep-ocsroot, check the function "do_mount_local_dev".
Hope this helps.
Steven.