Last active
May 2, 2019 07:35
-
-
Save SvenDowideit/6b79bce042523a34be88d7a343e80721 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
# Auto install RancherOS on the first disk (we're assuming there is nothing you want to keep), and use the existing kernel params. | |
write_files: | |
- path: /opt/install | |
permissions: "0755" | |
content: | | |
#!/bin/sh | |
set -ex | |
echo "running" > /var/log/ros-install.log | |
system-docker exec console ros install -i rancher/os:v1.0.2 -d $(partprobe -s | head -n1 | cut -d : -f0) --append "$(cat /proc/cmdline)" -f --debug >> /var/log/install.log 2>&1 | |
echo "done" >> /var/log/ros-install.log | |
ssh_authorized_keys: | |
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC85w9stZyiLQp/DkVO6fqwiShYcj1ClKdtCqgHtf+PLpJkFReSFu8y21y+ev09gsSMRRrjF7yt0pUHV6zncQhVeqsZtgc5WbELY2DOYUGmRn/CCvPbXovoBrQjSorqlBmpuPwsStYLr92Xn+VVsMNSUIegHY22DphGbDKG85vrKB8HxUxGIDxFBds/uE8FhSy+xsoyT/jUZDK6pgq2HnGl6D81ViIlKecpOpWlW3B+fea99ADNyZNVvDzbHE5pcI3VRw8u59WmpWOUgT6qacNVACl8GqpBvQk8sw7O/X9DSZHCKafeD9G5k+GYbAUz92fKWrx/lOXfUXPS3+c8dRIF | |
rancher: | |
services: | |
ros-install: | |
image: alpine | |
entrypoint: /usr/bin/ros entrypoint | |
command: /opt/install | |
labels: | |
io.rancher.os.scope: system | |
io.rancher.os.after: console | |
uts: host | |
privileged: true | |
volumes: | |
- /var/log:/var/log | |
volumes_from: | |
- all-volumes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!ipxe | |
dhcp | |
set base-url https://releases.rancher.com/os/v1.0.2 | |
kernel ${base-url}/vmlinuz printk.devkmsg=on rancher.state.dev=LABEL=RANCHER_STATE rancher.state.wait console=tty0 rancher.state.mdadm_scan console=ttyS1,115200n8 rancher.autologin=ttyS1 rancher.network.interfaces.eth*.dhcp=true rancher.cloud_init.datasources=[packet] | |
initrd ${base-url}/initrd | |
boot |
mmm, i wonder if using agetty from util-linux 2.28
and login
from busybox is the problem. - that won't be fun to debug.
and centos also has the issue.
reminder to self - agetty is more consistent between consoles, so either extract the getty&login calls to outside the console, or...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ah :/, now to wonder why autologin causes
stty -icrnl