As you know, Ubuntu when turning off the LiveCD / LiveUSB gives the following message:

Is it possible to disable it? I will need to restart the computer remotely (I picked up SSH in the loaded LiveUSB), and there will simply be no one to press Enter.

  • add noprompt to the options passed to the linux program. see for example, here - aleksandr barakin
  • @aleksandrbarakin for this you need to cut down already loaded liveusb, but in my case it is impossible, is it possible without rebooting somehow? - andreymal
  • change /proc/cmdline does not work: read only. but you can try changing on the fly the code that handles the presence / absence of this option: git.launchpad.net/ubuntu/+source/casper/tree/bin/casper-stop (see the prompt variable). for example, you can create the file /run/casper-no-prompt . - aleksandr barakin
  • click on enter after the installation, by the way, not necessarily. You can simply restart the computer. the effect will be similar. - aleksandr barakin pm

1 answer 1

  1. you can add noprompt to the parameters passed to the linux program
  2. in an already running system, you can create the file /run/casper-no-prompt or correct the code directly in the corresponding casper file . it is necessary to look for the file somewhere in the bowels of the /casper (or where the casper-farm in your assembly is mounted / copied there). although the name is quite unique - you can search from the root.
  • The trouble came from no waiting: the liveusb flash drive was touched, it stopped contacting and the system files with /sbin/casper-stop stupidly stopped reading: D I had to reboot via echo -nb > /proc/sysrq-trigger ssh did not fall off :) But In the touch /run/casper-no-prompt checked - touch /run/casper-no-prompt really works - andreymal 10:52 pm