ryran / upvm

Leverage virt-builder & virt-install to spin up new VMs with ease
Apache License 2.0
40 stars 9 forks source link

make firstboot script a lil less verbose and conditionally re-add "run-parts /etc/cron.daily" #35

Closed ryran closed 8 years ago

ryran commented 8 years ago

Too much:

Red Hat Enterprise Linux Server 7.2 (Maipo)
Kernel 3.10.0-327.el7.x86_64 on an x86_64 (ttyS0)

IPv4/IPv6 addrs (Enter to refresh):
  eth0: 192.168.122.209 or [fe80::5054:ff:fe11:7cc6]

r72 login: [   10.428139] firstboot.sh[1283]: /usr/lib/virt-sysprep/firstboot.sh start
[   10.442608] firstboot.sh[1283]: Scripts dir: /usr/lib/virt-sysprep/scripts
[   10.478543] firstboot.sh[1283]: === Running /usr/lib/virt-sysprep/scripts/0001--tmp-upvm-firstboot-sshkeys-cleanup-Cp4OXt-sh ===
[   10.494723] firstboot.sh[1283]: Installing authorized ssh pubkey(s) for root user ...
[   10.500954] firstboot.sh[1283]: mkdir: created directory ‘/root/.ssh’
[   10.508572] firstboot.sh[1283]: mode of ‘/root/.ssh’ changed from 0755 (rwxr-xr-x) to 0700 (rwx------)
[   10.525102] firstboot.sh[1283]: mode of ‘/root/.ssh/authorized_keys’ changed from 0644 (rw-r--r--) to 0600 (rw-------)
[   10.570293] firstboot.sh[1283]: Done.
[   10.841678] firstboot.sh[1283]: removed ‘/etc/rc2.d/S99virt-sysprep-firstboot’
[   10.843224] firstboot.sh[1283]: removed ‘/etc/rc3.d/S99virt-sysprep-firstboot’
[   10.844503] firstboot.sh[1283]: removed ‘/etc/rc5.d/S99virt-sysprep-firstboot’
[   10.849429] firstboot.sh[1283]: One-time firstboot script finished.

Red Hat Enterprise Linux Server 7.2 (Maipo)
Kernel 3.10.0-327.el7.x86_64 on an x86_64 (ttyS0)

IPv4/IPv6 addrs (Enter to refresh):
  eth0: 192.168.122.209 or [fe80::5054:ff:fe11:7cc6]

r72 login: 
ryran commented 8 years ago

DONE.

Red Hat Enterprise Linux Server 7.2 (Maipo)
Kernel 3.10.0-327.el7.x86_64 on an x86_64 (ttyS0)

IPv4/IPv6 addrs (Enter to refresh):
  eth0: 192.168.122.91 or [fe80::5054:ff:fe99:4a01]

r72 login: [   10.398758] firstboot.sh[1291]: /usr/lib/virt-sysprep/firstboot.sh start
[   10.405651] firstboot.sh[1291]: Scripts dir: /usr/lib/virt-sysprep/scripts
[   10.444998] firstboot.sh[1291]: === Running /usr/lib/virt-sysprep/scripts/0001--tmp-upvm-firstboot-sshkeys-cleanup-5InBH3-sh ===
[   10.527082] firstboot.sh[1291]: Installed authorized SSH pubkey(s) for root user

Red Hat Enterprise Linux Server 7.2 (Maipo)
Kernel 3.10.0-327.el7.x86_64 on an x86_64 (ttyS0)

IPv4/IPv6 addrs (Enter to refresh):
  eth0: 192.168.122.91 or [fe80::5054:ff:fe99:4a01]

r72 login: root
Password: 
[root@r72 ~]# [   27.801796] firstboot.sh[1291]: Finished first-run of /etc/cron.daily scripts (e.g. mandb)
[   27.803365] firstboot.sh[1291]: Finished one-time firstboot script.