github.com/rkt/rkt@v1.30.1-0.20200224141603-171c416fac02/tests/cloudinit/fedora-25.cloudinit (about)

     1  #!/bin/bash
     2  
     3  set -e
     4  set -x
     5  
     6  # ---pretend-input-tty (with 3 dashes) is an undocumented feature of parted
     7  parted /dev/xvda ---pretend-input-tty resizepart 1 yes 100%
     8  resize2fs /dev/xvda1
     9  
    10  chmod 755 /home/fedora
    11  
    12  dnf -y -v update
    13  dnf -y -v groupinstall "Development Tools" "C Development Tools and Libraries"
    14  dnf -y -v install wget squashfs-tools patch glibc-static gnupg golang libacl-devel file openssl-devel bc
    15  # systemd-container only available in newer versions of Fedora
    16  dnf -y -v install systemd-container || true
    17  dnf -y -v install java || true
    18  dnf -y -v install iptables || true
    19  dnf builddep -y -v systemd
    20  dnf -y -v install systemd-devel || true
    21  dnf -y -v install iptables intltool
    22  
    23  groupadd rkt || true
    24  gpasswd -a fedora rkt || true
    25  
    26  cat << EOF > /etc/sysconfig/network-scripts/ifcfg-eth0
    27  DEVICE=eth0
    28  BOOTPROTO=dhcp
    29  ONBOOT=yes
    30  TYPE=Ethernet
    31  USERCTL=yes
    32  PEERDNS=yes
    33  IPV6INIT=no
    34  EOF