mirror of
https://pagure.io/fedora-kickstarts.git
synced 2025-12-11 09:30:30 +08:00
Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a40ab7b175 | ||
|
|
769827f2e7 | ||
|
|
4dc7946ad4 | ||
|
|
ed4f6a9e88 | ||
|
|
6ba647a663 | ||
|
|
77955c8fc4 | ||
|
|
5a5764090a | ||
|
|
9390940213 | ||
|
|
21696187bb | ||
|
|
1e1a531b9b | ||
|
|
ca057bc830 | ||
|
|
1dd0bbf214 | ||
|
|
1b5f493b33 | ||
|
|
181d3e9f8c | ||
|
|
561734e70a | ||
|
|
16945e23fd | ||
|
|
a5726d984b |
@@ -1,9 +0,0 @@
|
|||||||
Congratulations, you've successfully created a SparkleShare repository!
|
|
||||||
|
|
||||||
Any files you add or change in this folder will be automatically synced to
|
|
||||||
ssh://luya@git.fedorahosted.org/git/spin-kickstarts.git and everyone connected to it.
|
|
||||||
|
|
||||||
SparkleShare is an Open Source software program that helps people collaborate and
|
|
||||||
share files. If you like what we do, consider buying us a beer: http://www.sparkleshare.org/
|
|
||||||
|
|
||||||
Have fun! :)
|
|
||||||
@@ -4,5 +4,5 @@
|
|||||||
<%page args="ostree_osname, ostree_ref"/>
|
<%page args="ostree_osname, ostree_ref"/>
|
||||||
append usr/share/anaconda/interactive-defaults.ks "ostreesetup --nogpg --osname=${ostree_osname} --remote=${ostree_osname} --url=file:////run/install/repo/content/repo --ref=${ostree_ref}\n"
|
append usr/share/anaconda/interactive-defaults.ks "ostreesetup --nogpg --osname=${ostree_osname} --remote=${ostree_osname} --url=file:////run/install/repo/content/repo --ref=${ostree_ref}\n"
|
||||||
append usr/share/anaconda/interactive-defaults.ks "services --disabled cloud-init,cloud-config,cloud-final,cloud-init-local\n"
|
append usr/share/anaconda/interactive-defaults.ks "services --disabled cloud-init,cloud-config,cloud-final,cloud-init-local\n"
|
||||||
append usr/share/anaconda/interactive-defaults.ks "%post --erroronfail\nrm -f /etc/ostree/remotes.d/${ostree_osname}.conf\n%end\n"
|
append usr/share/anaconda/interactive-defaults.ks "%post --erroronfail\nrm -f /etc/ostree/remotes.d/${ostree_osname}.conf\nostree remote add --set=gpg-verify=false fedora-atomic 'http://dl.fedoraproject.org/pub/fedora/linux/atomic/22/'\n%end\n"
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ services --enabled=ssh,NetworkManager,avahi-daemon,rsyslog,chronyd --disabled=ne
|
|||||||
@standard
|
@standard
|
||||||
@hardware-support
|
@hardware-support
|
||||||
@dial-up
|
@dial-up
|
||||||
@fedora-release-nonproduct
|
|
||||||
|
|
||||||
kernel
|
kernel
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
part / --size=3000 --fstype xfs
|
part / --size=3000 --fstype xfs
|
||||||
|
|
||||||
%packages
|
%packages
|
||||||
-@fedora-release-nonproduct
|
|
||||||
-@dial-up
|
-@dial-up
|
||||||
# install the default groups for the server evironment since installing the environment is not working
|
# install the default groups for the server evironment since installing the environment is not working
|
||||||
@server-product
|
@server-product
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
services --disabled=cloud-init,cloud-init-local,cloud-config,cloud-final
|
services --disabled=cloud-init,cloud-init-local,cloud-config,cloud-final
|
||||||
|
|
||||||
user --name=vagrant --password=vagrant
|
user --name=vagrant --password=vagrant
|
||||||
|
rootpw vagrant
|
||||||
|
|
||||||
%post --erroronfail
|
%post --erroronfail
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,10 @@ bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,11520
|
|||||||
# layer for dnf
|
# layer for dnf
|
||||||
# TODO: Teach vagrant about dnf
|
# TODO: Teach vagrant about dnf
|
||||||
dnf-yum
|
dnf-yum
|
||||||
|
# rsync gets installed when the Vagrant box is first launched on the
|
||||||
|
# users setup. This can actually take a bit of time. Just fold it
|
||||||
|
# in to the base box disk image
|
||||||
|
rsync
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%post --erroronfail
|
%post --erroronfail
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#
|
#
|
||||||
# curl -O https://git.fedorahosted.org/cgit/fedora-atomic.git/plain/fedora-atomic-rawhide.tdl
|
# curl -O https://git.fedorahosted.org/cgit/fedora-atomic.git/plain/fedora-atomic-rawhide.tdl
|
||||||
# tempfile=$(mktemp --suffix=.ks)
|
# tempfile=$(mktemp --suffix=.ks)
|
||||||
# ksflatten -v F22 fedora-cloud-base.ks > ${tempfile}
|
# ksflatten -v F22 -c fedora-cloud-base.ks > ${tempfile}
|
||||||
# imagefactory --debug base_image --file-parameter install_script ${tempfile} fedora-atomic-rawhide.tdl
|
# imagefactory --debug base_image --file-parameter install_script ${tempfile} fedora-atomic-rawhide.tdl
|
||||||
#
|
#
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ services --enabled=network,sshd,rsyslog,cloud-init,cloud-init-local,cloud-config
|
|||||||
|
|
||||||
zerombr
|
zerombr
|
||||||
clearpart --all
|
clearpart --all
|
||||||
part / --size 3000 --fstype ext4
|
part / --size 3000 --fstype ext4 --grow
|
||||||
|
|
||||||
%include fedora-repo.ks
|
%include fedora-repo.ks
|
||||||
|
|
||||||
|
|||||||
@@ -16,9 +16,10 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
cmdline
|
cmdline
|
||||||
bootloader --location=none
|
bootloader --disabled
|
||||||
timezone --isUtc --nontp Etc/UTC
|
timezone --isUtc --nontp Etc/UTC
|
||||||
rootpw --plaintext qweqwe
|
rootpw --lock --iscrypted locked
|
||||||
|
user --name=none
|
||||||
|
|
||||||
keyboard us
|
keyboard us
|
||||||
zerombr
|
zerombr
|
||||||
@@ -44,6 +45,9 @@ dnf-yum # https://fedorahosted.org/fesco/ticket/1312#comment:29
|
|||||||
# Set the language rpm nodocs transaction flag persistently in the
|
# Set the language rpm nodocs transaction flag persistently in the
|
||||||
# image yum.conf and rpm macros
|
# image yum.conf and rpm macros
|
||||||
|
|
||||||
|
# remove the user anaconda forces us to make
|
||||||
|
userdel -r none
|
||||||
|
|
||||||
LANG="en_US"
|
LANG="en_US"
|
||||||
echo "%_install_lang $LANG" > /etc/rpm/macros.image-language-conf
|
echo "%_install_lang $LANG" > /etc/rpm/macros.image-language-conf
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ services --enabled=NetworkManager --disabled=network,sshd
|
|||||||
@guest-desktop-agents
|
@guest-desktop-agents
|
||||||
@standard
|
@standard
|
||||||
@core
|
@core
|
||||||
@fedora-release-nonproduct
|
|
||||||
@fonts
|
@fonts
|
||||||
@input-methods
|
@input-methods
|
||||||
@dial-up
|
@dial-up
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ fi
|
|||||||
mkdir -p /home/liveuser/.config/
|
mkdir -p /home/liveuser/.config/
|
||||||
cat > /home/liveuser/.config/kickoffrc << MENU_EOF
|
cat > /home/liveuser/.config/kickoffrc << MENU_EOF
|
||||||
[Favorites]
|
[Favorites]
|
||||||
FavoriteURLs=/usr/share/applications/kde4/kfmclient_html.desktop,/usr/share/applications/kde4/dolphin.desktop,/usr/share/applications/systemsettings.desktop,/usr/share/applications/org.kde.konsole.desktop,/usr/share/applications/liveinst.desktop
|
FavoriteURLs=/usr/share/applications/kde4/konqbrowser.desktop,/usr/share/applications/kde4/dolphin.desktop,/usr/share/applications/systemsettings.desktop,/usr/share/applications/org.kde.konsole.desktop,/usr/share/applications/liveinst.desktop
|
||||||
MENU_EOF
|
MENU_EOF
|
||||||
|
|
||||||
# show liveinst.desktop on desktop and in menu
|
# show liveinst.desktop on desktop and in menu
|
||||||
@@ -80,23 +80,13 @@ cat > /home/liveuser/.config/akonadi/akonadiserverrc << AKONADI_EOF
|
|||||||
Driver=QSQLITE3
|
Driver=QSQLITE3
|
||||||
AKONADI_EOF
|
AKONADI_EOF
|
||||||
|
|
||||||
# Disable the update notifications of apper
|
# Disable plasma-pk-updates
|
||||||
cat > /home/liveuser/.kde/share/config/apper << APPER_EOF
|
sed -i \
|
||||||
[CheckUpdate]
|
-e "s|^X-KDE-PluginInfo-EnabledByDefault=true|X-KDE-PluginInfo-EnabledByDefault=false|g" \
|
||||||
autoUpdate=0
|
/usr/share/kservices5/plasma-applet-org.kde.plasma.pkupdates.desktop
|
||||||
distroUpgrade=0
|
|
||||||
interval=0
|
|
||||||
APPER_EOF
|
|
||||||
|
|
||||||
# Disable some kded modules
|
|
||||||
# apperd: http://bugzilla.redhat.com/948099
|
|
||||||
cat > /home/liveuser/.kde/share/config/kdedrc << KDEDRC_EOF
|
|
||||||
[Module-apperd]
|
|
||||||
autoload=false
|
|
||||||
KDEDRC_EOF
|
|
||||||
|
|
||||||
# Disable baloo
|
# Disable baloo
|
||||||
cat > /home/liveuser/.kde/share/config/baloofilerc << BALOO_EOF
|
cat > /home/liveuser/.config/baloofilerc << BALOO_EOF
|
||||||
[Basic Settings]
|
[Basic Settings]
|
||||||
Indexing-Enabled=false
|
Indexing-Enabled=false
|
||||||
BALOO_EOF
|
BALOO_EOF
|
||||||
@@ -111,11 +101,6 @@ KRES_EOF
|
|||||||
chown -R liveuser:liveuser /home/liveuser/
|
chown -R liveuser:liveuser /home/liveuser/
|
||||||
restorecon -R /home/liveuser/
|
restorecon -R /home/liveuser/
|
||||||
|
|
||||||
# small hack to enable plasma-netbook workspace on boot
|
|
||||||
if strstr "\`cat /proc/cmdline\`" netbook ; then
|
|
||||||
mv /usr/share/autostart/plasma-desktop.desktop /usr/share/autostart/plasma-netbook.desktop
|
|
||||||
sed -i 's/desktop/netbook/g' /usr/share/autostart/plasma-netbook.desktop
|
|
||||||
fi
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
|||||||
@@ -1,72 +0,0 @@
|
|||||||
# Kickstart file to create a small "base" Fedora image install suitable
|
|
||||||
# for use as e.g. an application server.
|
|
||||||
#
|
|
||||||
# Maintainer: fedora-cloud-list@fedoraproject.org
|
|
||||||
#
|
|
||||||
# REQUIRED variables:
|
|
||||||
# @@PUBLIC_KEY@@ - ssh public key
|
|
||||||
#
|
|
||||||
# You must search for all required variables and replace them.
|
|
||||||
# Example usage:
|
|
||||||
# sed -e s,@@PUBLIC_KEY@@,"$(cat ~/.ssh/authorized_keys)", fedora-virt-server.ks.in > my-fedora-server.ks
|
|
||||||
|
|
||||||
lang C
|
|
||||||
keyboard us
|
|
||||||
timezone --utc GMT/Zulu
|
|
||||||
auth --useshadow --enablemd5
|
|
||||||
firewall --service=ssh
|
|
||||||
bootloader --timeout=1 --append="acpi=force"
|
|
||||||
network --bootproto=dhcp --device=eth0 --onboot=on
|
|
||||||
services --enabled=network
|
|
||||||
|
|
||||||
## IMPORTANT ##
|
|
||||||
## EDIT HERE ##
|
|
||||||
# ROOT PASSWORD:
|
|
||||||
# Setting a root password is NOT RECOMMENDED, especially if your
|
|
||||||
# server will be accessible to the public internet. This is
|
|
||||||
# because of the rise of automated ssh password guessing attacks.
|
|
||||||
# You should instead (if you don't have one already)
|
|
||||||
# generate a public ssh key:
|
|
||||||
# http://sial.org/howto/openssh/publickey-auth/
|
|
||||||
#
|
|
||||||
# See comment below in %post for authorizing your public
|
|
||||||
# key for the root account.
|
|
||||||
|
|
||||||
rootpw ""
|
|
||||||
|
|
||||||
# However, if you choose instead to make a password,
|
|
||||||
# you will need to replace the above line with one like
|
|
||||||
# rootpw --iscrypted @@ROOT_PASSWORD_CRYPTED@@
|
|
||||||
# If you do neither of these things, you will not be able to log
|
|
||||||
# into your machine.
|
|
||||||
|
|
||||||
clearpart --all --initlabel
|
|
||||||
part / --size=550 --grow --fstype=ext4
|
|
||||||
# You may change this if you don't want swap
|
|
||||||
part swap --recommended
|
|
||||||
|
|
||||||
%packages
|
|
||||||
@standard
|
|
||||||
%end
|
|
||||||
|
|
||||||
#
|
|
||||||
# Add custom post scripts after the base post.
|
|
||||||
#
|
|
||||||
%post
|
|
||||||
|
|
||||||
## EDIT HERE ##
|
|
||||||
cd /root
|
|
||||||
if ! test -d .ssh; then
|
|
||||||
mkdir --mode=700 .ssh
|
|
||||||
fi
|
|
||||||
cat >> .ssh/authorized_keys << END_AUTHORIZED_KEYS
|
|
||||||
@@PUBLIC_KEY@@
|
|
||||||
END_AUTHORIZED_KEYS
|
|
||||||
chmod 600 .ssh/authorized_keys
|
|
||||||
if -x /usr/sbin/selinuxenabled && /usr/sbin/selinuxenabled; then
|
|
||||||
chcon -R -h -t home_ssh_t .ssh
|
|
||||||
fi
|
|
||||||
|
|
||||||
%end
|
|
||||||
|
|
||||||
reboot
|
|
||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
# Exclude unwanted groups that fedora-live-base.ks pulls in
|
# Exclude unwanted groups that fedora-live-base.ks pulls in
|
||||||
-@dial-up
|
-@dial-up
|
||||||
-@fedora-release-nonproduct
|
|
||||||
-@input-methods
|
-@input-methods
|
||||||
-@standard
|
-@standard
|
||||||
|
|
||||||
@@ -10,6 +9,7 @@
|
|||||||
# workstation-product-environment in comps
|
# workstation-product-environment in comps
|
||||||
@base-x
|
@base-x
|
||||||
@core
|
@core
|
||||||
|
@firefox
|
||||||
@fonts
|
@fonts
|
||||||
@guest-desktop-agents
|
@guest-desktop-agents
|
||||||
@hardware-support
|
@hardware-support
|
||||||
|
|||||||
Reference in New Issue
Block a user