# 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 # 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 3327 --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 @base @core @admin-tools # we might want to set the clock ntpdate -firstboot -biosdevname # get the uboot tools uboot-tools # FIXME: remove this dues to broken dependency in the repo. -cifs-utils %end # more configuration %post --erroronfail # 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 # get the root device from fstab, typically UUID= ROOTDEV=`grep -w "\/" /etc/fstab | cut -d ' ' -f1` # 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=$ROOTDEV ro rootwait ext2load ${DEVICE} 0:1 4080000 $KERNEL ext2load ${DEVICE} 0:1 4880000 $INITRD bootm 4080000 4880000 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