postinstall.tmpl cleanups
This commit is contained in:
parent
9dad023a2f
commit
66e8d5d1f8
@ -5,13 +5,6 @@ SCREENFONT = "usr/share/anaconda/screenfont-%s.gz" % arch.basearch
|
|||||||
PYTHONDIR = glob(root+"/usr/"+arch.libdir+"/python?.?")[0]
|
PYTHONDIR = glob(root+"/usr/"+arch.libdir+"/python?.?")[0]
|
||||||
stubs = ("list-harddrives", "loadkeys", "mknod", "raidstart", "raidstop")
|
stubs = ("list-harddrives", "loadkeys", "mknod", "raidstart", "raidstop")
|
||||||
%>
|
%>
|
||||||
<%def name="generate_ssh_keys()">
|
|
||||||
runcmd ssh-keygen -q -C "" -N "" -t rsa1 -f ${root}/etc/ssh/ssh_host_key
|
|
||||||
runcmd ssh-keygen -q -C "" -N "" -t rsa -f ${root}/etc/ssh/ssh_host_rsa_key
|
|
||||||
runcmd ssh-keygen -q -C "" -N "" -t dsa -f ${root}/etc/ssh/ssh_host_dsa_key
|
|
||||||
chmod etc/ssh/ssh_host*_key 600
|
|
||||||
chmod etc/ssh/ssh_host*_key.pub 644
|
|
||||||
</%def>
|
|
||||||
|
|
||||||
## create_keymaps(arch.basearch)
|
## create_keymaps(arch.basearch)
|
||||||
%if arch.basearch not in ("s390", "s390x"):
|
%if arch.basearch not in ("s390", "s390x"):
|
||||||
@ -22,11 +15,9 @@ stubs = ("list-harddrives", "loadkeys", "mknod", "raidstart", "raidstop")
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
## create_screenfont()
|
## create_screenfont()
|
||||||
moveif usr/share/anaconda/screenfont-${arch.basearch}.gz etc/screenfont.gz
|
moveif usr/share/anaconda/screenfont-${arch.basearch}.gz etc/screenfont.gz
|
||||||
|
|
||||||
|
|
||||||
## move_stubs()
|
## move_stubs()
|
||||||
move usr/share/anaconda/restart-anaconda usr/bin
|
move usr/share/anaconda/restart-anaconda usr/bin
|
||||||
move ${PYTHONDIR}/site-packages/pyanaconda/sitecustomize.py ${PYTHONDIR}/site-packages
|
move ${PYTHONDIR}/site-packages/pyanaconda/sitecustomize.py ${PYTHONDIR}/site-packages
|
||||||
@ -34,15 +25,9 @@ move ${PYTHONDIR}/site-packages/pyanaconda/sitecustomize.py ${PYTHONDIR}/site-pa
|
|||||||
moveif usr/share/anaconda/${stub}-stub usr/bin/${stub}
|
moveif usr/share/anaconda/${stub}-stub usr/bin/${stub}
|
||||||
%endfor
|
%endfor
|
||||||
|
|
||||||
|
|
||||||
## move_repos()
|
## move_repos()
|
||||||
move etc/yum.repos.d etc/anaconda.repos.d
|
move etc/yum.repos.d etc/anaconda.repos.d
|
||||||
|
|
||||||
|
|
||||||
## create_depmod_conf()
|
|
||||||
append etc/depmod.d/dd.conf "search updates built-in"
|
|
||||||
|
|
||||||
|
|
||||||
## misc_tree_modifications()
|
## misc_tree_modifications()
|
||||||
## set up our own init for F15, otherwise use systemd
|
## set up our own init for F15, otherwise use systemd
|
||||||
%if int(product.version) == 15:
|
%if int(product.version) == 15:
|
||||||
@ -61,7 +46,6 @@ append etc/resolv.conf ""
|
|||||||
append bin/login "#!/bin/bash"
|
append bin/login "#!/bin/bash"
|
||||||
append bin/login "exec -l /bin/bash"
|
append bin/login "exec -l /bin/bash"
|
||||||
|
|
||||||
|
|
||||||
## get_config_files(configdir)
|
## get_config_files(configdir)
|
||||||
## gconf stuff
|
## gconf stuff
|
||||||
gconfset /apps/metacity/general/button_layout string :
|
gconfset /apps/metacity/general/button_layout string :
|
||||||
@ -85,7 +69,6 @@ install ${configdir}/libuser.conf etc
|
|||||||
install ${configdir}/selinux.config etc/selinux/config
|
install ${configdir}/selinux.config etc/selinux/config
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
## setup_sshd(configdir)
|
## setup_sshd(configdir)
|
||||||
install ${configdir}/sshd_config.anaconda etc/ssh
|
install ${configdir}/sshd_config.anaconda etc/ssh
|
||||||
install ${configdir}/pam.sshd etc/pam.d/sshd
|
install ${configdir}/pam.sshd etc/pam.d/sshd
|
||||||
@ -101,10 +84,14 @@ chmod etc/shadow 400
|
|||||||
## misc_s390_modifications()
|
## misc_s390_modifications()
|
||||||
remove sbin/init
|
remove sbin/init
|
||||||
move usr/share/anaconda/linuxrc.s390 sbin/init
|
move usr/share/anaconda/linuxrc.s390 sbin/init
|
||||||
${generate_ssh_keys()}
|
## generate ssh keys
|
||||||
|
runcmd ssh-keygen -q -C "" -N "" -t rsa1 -f ${root}/etc/ssh/ssh_host_key
|
||||||
|
runcmd ssh-keygen -q -C "" -N "" -t rsa -f ${root}/etc/ssh/ssh_host_rsa_key
|
||||||
|
runcmd ssh-keygen -q -C "" -N "" -t dsa -f ${root}/etc/ssh/ssh_host_dsa_key
|
||||||
|
chmod etc/ssh/ssh_host*_key 600
|
||||||
|
chmod etc/ssh/ssh_host*_key.pub 644
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
## get_anaconda_portions()
|
## get_anaconda_portions()
|
||||||
move usr/${libdir}/anaconda/loader sbin
|
move usr/${libdir}/anaconda/loader sbin
|
||||||
move usr/share/anaconda/loader.tr etc
|
move usr/share/anaconda/loader.tr etc
|
||||||
@ -116,6 +103,9 @@ move lib/firmware firmware
|
|||||||
symlink ../modules lib/modules
|
symlink ../modules lib/modules
|
||||||
symlink ../firmware lib/firmware
|
symlink ../firmware lib/firmware
|
||||||
|
|
||||||
|
## create_depmod_conf()
|
||||||
|
append etc/depmod.d/dd.conf "search updates built-in"
|
||||||
|
|
||||||
## TODO: cleanup_kernel_modules(), then depmod
|
## TODO: cleanup_kernel_modules(), then depmod
|
||||||
## TODO: depmod -a -F ${root}/boot/System.map-${kver} -b ${root} ${kver}
|
## TODO: depmod -a -F ${root}/boot/System.map-${kver} -b ${root} ${kver}
|
||||||
%for moddir in glob("modules/*"):
|
%for moddir in glob("modules/*"):
|
||||||
|
Loading…
Reference in New Issue
Block a user