I'm currently using a USB stick with 2 partions, but the stick will change it's postion depending on the clients bios settings. I'm trying to find a solution to allow clients to define their own repository (local_dev /home/partimag) but then preseed other options. I'm guessing I'd have to use the ocs_prerun function to load up a ocs-scan-now function?
menuentry "Restore Hard Drive to Factory Default - ALL DATA WILL BE DELETED"{
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live union=overlay username=user hostname=G2 config quiet components noswap edd=on nomodeset noeject locales= keyboard-layouts=None ocs_prerun="???"ocs_live_run="ocs-sr -g auto -e1 auto -e2 -c -r -j2 -k1 -scr -p poweroff restoredisk ask_user ask_user" ocs_live_extra_param="" ocs_live_batch="no" vga=788 ip= net.ifnames=0 splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
initrd /live/initrd.img
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm currently using a USB stick with 2 partions, but the stick will change it's postion depending on the clients bios settings. I'm trying to find a solution to allow clients to define their own repository (local_dev /home/partimag) but then preseed other options. I'm guessing I'd have to use the ocs_prerun function to load up a ocs-scan-now function?
menuentry "Restore Hard Drive to Factory Default - ALL DATA WILL BE DELETED"{
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live union=overlay username=user hostname=G2 config quiet components noswap edd=on nomodeset noeject locales= keyboard-layouts=None ocs_prerun="???"ocs_live_run="ocs-sr -g auto -e1 auto -e2 -c -r -j2 -k1 -scr -p poweroff restoredisk ask_user ask_user" ocs_live_extra_param="" ocs_live_batch="no" vga=788 ip= net.ifnames=0 splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
initrd /live/initrd.img
Try to use:
ocs_prerun="prep-ocsroot"
It will be interactive mode, and allows user to choose his/her image repository.
Steven