Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computer:build_debian_jessie_amd64_lxc_pve_template [2017/02/18 10:24]
tdobes
computer:build_debian_jessie_amd64_lxc_pve_template [2017/05/02 16:16]
tdobes
Line 12: Line 12:
 Architecture:​ amd64 Architecture:​ amd64
 Name: debian-8.0-tom Name: debian-8.0-tom
-Version: 8.7-tom2+Version: 8.7-tom3
 Section: system Section: system
 Maintainer: Tom Dobes <​tomdobes@purdue.edu>​ Maintainer: Tom Dobes <​tomdobes@purdue.edu>​
Line 67: Line 67:
  echo '​[Service]'​ > ${BASEDIR}/​etc/​systemd/​system/​getty\@tty1.service.d/​noclear.conf  echo '​[Service]'​ > ${BASEDIR}/​etc/​systemd/​system/​getty\@tty1.service.d/​noclear.conf
  echo '​TTYVTDisallocate=no'​ >> ${BASEDIR}/​etc/​systemd/​system/​getty\@tty1.service.d/​noclear.conf  echo '​TTYVTDisallocate=no'​ >> ${BASEDIR}/​etc/​systemd/​system/​getty\@tty1.service.d/​noclear.conf
- echo '​[Unit]'​ > ${BASEDIR}/​etc/​systemd/​system/​getty\@tty1.service.d/​run_in_container.conf 
- echo '​ConditionPathExists='​ >> ${BASEDIR}/​etc/​systemd/​system/​getty\@tty1.service.d/​run_in_container.conf 
- echo '​ConditionPathExists=/​dev/​tty1'​ >> ${BASEDIR}/​etc/​systemd/​system/​getty\@tty1.service.d/​run_in_container.conf 
  
  echo "​America/​Chicago"​ > ${BASEDIR}/​etc/​timezone  echo "​America/​Chicago"​ > ${BASEDIR}/​etc/​timezone
Line 115: Line 112:
 BUGS: BUGS:
   * at the end of this, we don't seem to have a package cache in the VM... maybe related to the sources.list copy which we do to add the deb-src lines? ​ Everything'​s fine after you run ''​aptitude update''​ once in the VM.   * at the end of this, we don't seem to have a package cache in the VM... maybe related to the sources.list copy which we do to add the deb-src lines? ​ Everything'​s fine after you run ''​aptitude update''​ once in the VM.
 +
 +**How to update tom1 CT to tom2 (getty stuff)**
 +<​code>​
 +systemctl unmask console-getty.service
 +systemctl unmask container-getty\@0.service
 +ln -s /​lib/​systemd/​system/​getty\@.service /​etc/​systemd/​system/​getty.target.wants/​getty\@tty1.service
 +rm /​etc/​systemd/​system/​getty.target.wants/​container-getty\@1.service
 +rm /​etc/​systemd/​system/​getty.target.wants/​container-getty\@2.service
 +mkdir -p /​etc/​systemd/​system/​getty\@tty1.service.d
 +echo '​[Service]'​ > /​etc/​systemd/​system/​getty\@tty1.service.d/​noclear.conf
 +echo '​TTYVTDisallocate=no'​ >> /​etc/​systemd/​system/​getty\@tty1.service.d/​noclear.conf
 +echo '​[Unit]'​ > /​etc/​systemd/​system/​getty\@tty1.service.d/​run_in_container.conf
 +echo '​ConditionPathExists='​ >> /​etc/​systemd/​system/​getty\@tty1.service.d/​run_in_container.conf
 +echo '​ConditionPathExists=/​dev/​tty1'​ >> /​etc/​systemd/​system/​getty\@tty1.service.d/​run_in_container.conf
 +mkdir -p /​etc/​systemd/​system/​getty\@tty2.service.d
 +echo '​[Unit]'​ > /​etc/​systemd/​system/​getty\@tty2.service.d/​run_in_container.conf
 +echo '​ConditionPathExists='​ >> /​etc/​systemd/​system/​getty\@tty2.service.d/​run_in_container.conf
 +echo '​ConditionPathExists=/​dev/​tty2'​ >> /​etc/​systemd/​system/​getty\@tty2.service.d/​run_in_container.conf
 +</​code>​
 +
 +**How to update tom2 CT to tom3 (rollback some no-longer-needed getty stuff)**
 +<​code>​
 +rm /​etc/​systemd/​system/​getty\@tty1.service.d/​run_in_container.conf
 +rm /​etc/​systemd/​system/​getty\@tty2.service.d/​run_in_container.conf
 +rmdir /​etc/​systemd/​system/​getty\@tty2.service.d
 +</​code>​
computer/build_debian_jessie_amd64_lxc_pve_template.txt · Last modified: 2017/05/02 16:16 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS