Menu

How can I allow a user to choose a local repository but follow with preseeded parameters

Max Shaw
2019-12-10
2019-12-17
  • Max Shaw

    Max Shaw - 2019-12-10

    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

     
  • Steven Shiau

    Steven Shiau - 2019-12-17

    Try to use:
    ocs_prerun="prep-ocsroot"
    It will be interactive mode, and allows user to choose his/her image repository.

    Steven

     

Log in to post a comment.

MongoDB Logo MongoDB