# Build a basic Fedora ARM (Tegra) install using livemedia-creator lang en_US.UTF-8 keyboard us timezone --utc America/New_York auth --useshadow --enablemd5 selinux --disabled firewall --service=ssh bootloader --location=none network --bootproto=dhcp --device=eth0 --onboot=on --activate --hostname=trimslice-hardfp services --enabled=network,sshd --disabled=auditd skipx text # By default the root password is emptied rootpw --plaintext fedoraarm # # Define how large you want your rootfs to be # zerombr clearpart --all part /boot --size 255 --fstype ext3 --label=boot part swap --size 511 --label=swap part / --size 1280 --fstype ext4 --label=rootfs # # Repositories # apparently we must use 'url' for the install repo url --url="http://archive.kernel.org/fedora-secondary/development/17/armhfp/os/" # include a local repo to get modified grubby, etc. repo --name=xpfa --baseurl="http://dmarlin.fedorapeople.org/yum/f17/arm/os/Packages/" # # # Add all the packages after the base packages # %packages --nobase @core system-config-securitylevel-tui audit pciutils bash coreutils e2fsprogs passwd policycoreutils chkconfig rootfiles mock yum vim-minimal openssh-clients openssh-server curl sudo less ntpdate which #Allow for dhcp access dhclient iputils -firstboot -biosdevname # get the uboot tools uboot-tools %end # more configuration %post --erroronfail # fstab mounting for Trim Slice cat < /etc/fstab LABEL=rootfs / ext4 defaults 1 1 LABEL=boot /boot ext3 defaults 1 2 devpts /dev/pts devpts gid=5,mode=620 0 0 tmpfs /dev/shm tmpfs defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 LABEL=swap swap swap defaults 0 0 EOL # Install U-Boot boot.scr pushd /boot INITRD=`ls -1 uInitrd* | head -n1` KERNEL=`ls -1 uImage* | head -n1` # U-Boot load device # assume Bus=0, Unit=1 DEVICE=mmc # setup boot.scr cat < boot.cmd setenv bootargs mem=384M@0M mem=512M@512M nvmem=128M@384M vmalloc=248M video=tegrafb console=ttyS0,115200n8 root=LABEL=rootfs ro rootwait ext2load ${DEVICE} 0:1 4080000 $KERNEL ext2load ${DEVICE} 0:1 4480000 $INITRD bootm 4080000 4480000 EOL /usr/bin/mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Trim Slice F17 livemedia" -d boot.cmd boot.scr popd # setup systemd to boot to the right runlevel ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target ln -sf /lib/systemd/system/multi-user.target /lib/systemd/system/default.target # datestamp this release date +F17-%Y%m%d-livemedia > /etc/RELEASE %end