Compress mkinitcpio with lz4 on arch
This commit is contained in:
13
playbook.yml
13
playbook.yml
@@ -170,6 +170,19 @@
|
|||||||
NTP=0.arch.pool.ntp.org 1.arch.pool.ntp.org 2.arch.pool.ntp.org 3.arch.pool.ntp.org
|
NTP=0.arch.pool.ntp.org 1.arch.pool.ntp.org 2.arch.pool.ntp.org 3.arch.pool.ntp.org
|
||||||
FallbackNTP=0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org
|
FallbackNTP=0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
- name: install lz4
|
||||||
|
package:
|
||||||
|
name: lz4
|
||||||
|
state: installed
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: use lz4 for mkinitcpio compression
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/mkinitcpio.conf
|
||||||
|
regexp: '^#?COMPRESSION=.*$'
|
||||||
|
line: 'COMPRESSION="lz4"'
|
||||||
|
become: true
|
||||||
when: distro == 'archlinux'
|
when: distro == 'archlinux'
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
|
|||||||
Reference in New Issue
Block a user