Skip to content
Snippets Groups Projects
Commit f5c16227 authored by Pietsch, Martin's avatar Pietsch, Martin
Browse files

finish change to alpine linux

parent d71c493f
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
. /opt/functions.sh
installPackages openssh kbd-bkeymaps
gunzip -c /usr/share/bkeymaps/de/de-nodeadkeys.bmap.gz | loadkmap
echo "root:1" | chpasswd
sed -i -e 's/^#PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
/etc/init.d/sshd start
/bin/sh
......@@ -8,15 +8,29 @@
set_fact:
linux_build_installer_root: "{{ _linux_install_dir.path }}"
- name: create installers opt directory
- name: create installers directory layout
file:
path: "{{ '%s/opt' | format(linux_build_installer_root) }}"
path: "{{ '%s/%s' | format(linux_build_installer_root, _linux_dir) }}"
state: directory
loop:
- "opt"
- "etc"
- "etc/apk"
- "etc/conf.d"
loop_control:
loop_var: _linux_dir
- name: create installers etc directory
file:
path: "{{ '%s/etc' | format(linux_build_installer_root) }}"
state: directory
- name: set installers module download path
template:
dest: "{{ '%s/etc/conf.d/modloop' | format(linux_build_installer_root) }}"
src: modloop.conf.j2
mode: "0644"
- name: set installer repositories
copy:
dest: "{{ '%s/etc/apk/repositories' | format(linux_build_installer_root) }}"
content: "{{ '%s/v%s/main' | format(linux_installer_home_mirror, linux_installer_version) }}"
mode: "0644"
- name: configure boot default services
copy:
......@@ -25,7 +39,7 @@
- name: install custom inittab
copy:
src: "inittab"
src: inittab
dest: "{{ '%s/etc/inittab' | format(linux_build_installer_root) }}"
mode: "0644"
......
......@@ -6,8 +6,19 @@
- name: create target directory for compressed overlay filesystem
file:
path: "{{ '%s/opt' | format(_linux_temporary_root_directory.path) }}"
path: "{{ '%s/%s' | format(_linux_temporary_root_directory.path, _linux_dir) }}"
state: directory
loop:
- "opt"
- "tmp"
loop_control:
loop_var: _linux_dir
- name: aaa
copy:
dest: "{{ '%s/tmp/apkovls' | format(_linux_temporary_root_directory.path) }}"
content: "/opt/ovl.tar.gz"
mode: "0644"
- name: compress overlay filesystem
archive:
......
# Enable loadable module support when running from RAM
# when OverlayFS support is available in the kernel.
# 0 means default tmpfs size (50% of physical RAM).
# for more information please see kernel documention at:
# https://www.kernel.org/doc/Documentation/filesystems/tmpfs.txt
overlay_size=0
{{ 'KOPT_modloop=%s/v%s/releases/$(uname -m)/netboot/modloop-vanilla' | format(linux_installer_home_mirror, linux_installer_version) }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment