Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(670)

Unified Diff: skolo/raspberry-pi/finalize_image.yml

Issue 1930143002: Make swarming bootstrap at boot, not login (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | skolo/raspberry-pi/setup-swarming.sh » ('j') | skolo/raspberry-pi/setup-swarming.sh » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skolo/raspberry-pi/finalize_image.yml
diff --git a/skolo/raspberry-pi/finalize_image.yml b/skolo/raspberry-pi/finalize_image.yml
index e8790ae6926114148ea00297c95131396c4e2cfe..4316d7b6e60fa840106ffc046707e4c99357f67b 100644
--- a/skolo/raspberry-pi/finalize_image.yml
+++ b/skolo/raspberry-pi/finalize_image.yml
@@ -27,12 +27,6 @@
- lineinfile: dest=/opt/raspberrypi/root/lib/systemd/system/getty@.service regexp="^ExecStart.*" state=absent
- lineinfile: dest=/opt/raspberrypi/root/lib/systemd/system/getty@.service line="ExecStart=-/sbin/agetty --autologin chrome-bot --noclear %I $TERM" state=present insertafter="\[Service\]"
- - name: Create the startup script
- copy: src=startup-script.sh dest=/opt/raspberrypi/root/opt/startup-script.sh owner=root group=root mode=0755
-
- - name: Set to run our startup script at boot
- lineinfile: dest=/opt/raspberrypi/root/home/chrome-bot line="/opt/startup-script.sh" insertafter=EOF
-
- name: Fixing udev rules for Android and NVIDIA devices
copy: src=udev-rules dest=/opt/raspberrypi/root/etc/udev/rules.d/51-android.rules owner=root group=root mode=0644
@@ -46,9 +40,14 @@
- lineinfile: dest=/opt/raspberrypi/root/etc/ld.so.preload line="#/usr/lib/arm-linux-gnueabihf/libarmmem.so" state=absent
- lineinfile: dest=/opt/raspberrypi/root/etc/ld.so.preload line="/usr/lib/arm-linux-gnueabihf/libarmmem.so" state=present
+ # With these unmounted, chroot not work anymore. To make chroot work
+ # again, run the setup_for_chroot playbook.
- command: umount /opt/raspberrypi/root/dev
+ ignore_errors: true
- command: umount /opt/raspberrypi/root/proc
+ ignore_errors: true
- command: umount /opt/raspberrypi/root/sys
+ ignore_errors: true
- mount: name="/opt/raspberrypi/root" src="dontcare" fstype="auto" state="unmounted"
handlers:
« no previous file with comments | « no previous file | skolo/raspberry-pi/setup-swarming.sh » ('j') | skolo/raspberry-pi/setup-swarming.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698