Last active
September 3, 2018 18:25
-
-
Save rundel/a207439106e9c6738193b834cfe97718 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
#!/bin/bash | |
tftpdir="/var/lib/tftpboot/default/" | |
vmlinuz="$tftpdir/fedora/27/x86_64/vmlinuz" | |
initrd="$tftpdir/fedora/27/x86_64/initrd.img" | |
sudo /usr/bin/scp cr173@foreman.stat.duke.edu:$vmlinuz /mnt/boot/ks_vmlinuz | |
sudo /usr/bin/scp cr173@foreman.stat.duke.edu:$initrd /mnt/boot/ks_initrd.img | |
sudo chroot /mnt | |
grubby --add-kernel=/boot/ks_vmlinuz --initrd=/boot/ks_initrd.img --title "Kickstart F27" --make-default --args="console=tty0 ramdisk_size=8192 ks=nfs:152.3.7.2:/volumes/vol1/proj/linux/kickstart/ks-F27-minimal-puppet.txt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment