You are here

2- Start crouton chroot at boot

Important note: DO NOT WORK with encrypted chroot

To auto start the chroot when the Acer CB5 bootup, you need fisrt to make the chromeOS rootfs writable. 
In chromeOS, open a terminal with "Ctrl + Alt + t"

In the terminal type the command:
shell

disable rootfs verification:
sudo /usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification --partitions 4

reboot the device:
sudo reboot

Again open a terminal with "Ctrl + Alt + t"

In the terminal type the command:
shell

Remount the rootfs in Readable/Writable mode:
sudo mount -i -o remount,rw /

If no error occurs on the last command, you can then,
download, decompress and copy the file crouton.conf to /etc/init/

cd ~/Downloads/
wget https://gist.github.com/DennisLfromGA/6443733/download -O gist.tar.gz
tar xzvf gist.tar.gz
sudo cp gist*/crouton.conf /etc/init/

Edit the /etc/init/crouton.conf file to match your needs:
sudo vi /etc/init/crouton.conf

In this file you can choose when to start crouton chroot by uncommenting one of the 4 possibility:
the 1st did not work for me so far and the 2nd works well if I use a "delay" of 2 seconds.

##############################################
#start on starting ui          # 1st - starts when the user interface begins
start on started ui           # 2nd - starts when the user interface appears
#start on login-prompt-visible # 3rd - starts when the login screen appears
#start on start-user-session   # 4th - starts when the user logs in - DEFAULT
##############################################

 

below on the file you have several more option to custom

##############################################
# Declare variables                                                       ##
env DELAY=1            # delay desired number of seconds before starting ##
env CHROOT=trusty_lxde       # enter desired chroot to start                   ##
env START_DE=startlxde # enter desired Desktop Environment to use        ##
env RUN_STATE=y         # change to 'n' to disable running $CHROOT        ##
##############################################