updates
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
debug:
|
||||
verbosity: 1
|
||||
msg: "DEBUG: ansible-gentoo_install copy.yml"
|
||||
|
||||
|
||||
- name: test we are NOT in the chroot
|
||||
shell: |
|
||||
df | grep "{{AGI_NBD_MP}}" || exit 1
|
||||
@@ -15,7 +15,7 @@
|
||||
exit 4
|
||||
[ -d "{{AGI_GENTOO_FROM_MP}}" ] || exit 5
|
||||
check_mode: false
|
||||
|
||||
|
||||
- name: install to mp from source
|
||||
delegate_to: localhost
|
||||
shell: |
|
||||
@@ -33,7 +33,7 @@
|
||||
echo linux
|
||||
register: kernel_out
|
||||
check_mode: false
|
||||
|
||||
|
||||
- name: copy kernel sources
|
||||
copy:
|
||||
src: "{{AGI_GENTOO_FROM_MP}}/usr/src/{{kernel_out.stdout}}"
|
||||
@@ -44,7 +44,7 @@
|
||||
- kernel_out.rc|default(1) == 0
|
||||
- AGI_use_local_kernel
|
||||
- false # dunno where it went to
|
||||
|
||||
|
||||
- name: resolve kver
|
||||
shell: |
|
||||
kernel="{{kernel_out.stdout}}"
|
||||
@@ -62,7 +62,7 @@
|
||||
check_mode: false
|
||||
when:
|
||||
- kver_out.rc|default(1) == 0
|
||||
|
||||
|
||||
- name: resolve vmlinux
|
||||
shell: |
|
||||
kver="{{kver_out.stdout}}"
|
||||
@@ -71,7 +71,7 @@
|
||||
check_mode: false
|
||||
when:
|
||||
- kver_out.rc|default(1) == 0
|
||||
|
||||
|
||||
- name: copy kernel vmlinux
|
||||
copy:
|
||||
src: "{{AGI_GENTOO_FROM_MP}}{{vmlinux_out.stdout}}"
|
||||
@@ -89,7 +89,7 @@
|
||||
check_mode: false
|
||||
when:
|
||||
- kver_out.rc|default(1) == 0
|
||||
|
||||
|
||||
- name: copy kernel vmlinux
|
||||
copy:
|
||||
src: "{{AGI_GENTOO_FROM_MP}}{{ramfs_out.stdout}}"
|
||||
@@ -110,5 +110,5 @@
|
||||
[ -f "{{AGI_NBD_MP}}/{{file}}" ] && continue
|
||||
cp -np "$file" "{{AGI_NBD_MP}}/{{file}}"
|
||||
done
|
||||
|
||||
|
||||
# dracut
|
||||
|
||||
Reference in New Issue
Block a user