updates
This commit is contained in:
@@ -18,27 +18,27 @@
|
||||
parted -s {{nbd_disk}} mkpart primary 2048s 100%
|
||||
partprobe
|
||||
mkfs.ext4 -FF {{nbd_disk}}p1
|
||||
|
||||
|
||||
- name: "mount the disk"
|
||||
shell: |
|
||||
df | grep {{nbd_disk}}p1 && exit 0
|
||||
[ -d {{BASE_NBD_MP}} ] || mkdir {{BASE_NBD_MP}}
|
||||
mount {{nbd_disk}}p1 {{BASE_NBD_MP}}
|
||||
[ -d {{BASE_NBD_MP}}/lost+found ]
|
||||
|
||||
|
||||
- name: "check the disk"
|
||||
shell: |
|
||||
df | grep {{nbd_disk}}p1 || exit 1
|
||||
[ -d {{BASE_NBD_MP}}/lost+found ] || exit 2
|
||||
|
||||
|
||||
|
||||
|
||||
- name: check the downloads step5
|
||||
shell: |
|
||||
stage3_asc=stage3-amd64-openrc-20231217T170203Z.tar.xz.sha256
|
||||
stage3_xz=stage3-amd64-openrc-20231217T170203Z.tar.xz
|
||||
sha256sum -c $stage3_asc
|
||||
tar xJpf $stage3 --xattrs-include='*.*' --numeric-owner -C {{BASE_NBD_MP}
|
||||
|
||||
|
||||
portage_xz=portage-20231221.tar.xz
|
||||
tar xpJf $portage -C {{BASE_NBD_MP}}/usr
|
||||
|
||||
@@ -50,10 +50,10 @@
|
||||
|
||||
[ -d etc/portage/package.license ] || mkdir -p etc/portage/package.license
|
||||
EOF
|
||||
|
||||
|
||||
chdir: "{{BASE_NBD_MP}}"
|
||||
creates: "{{BASE_NBD_MP}}/etc"
|
||||
|
||||
|
||||
- name: chroot into the partition - step4
|
||||
shell: |
|
||||
df | grep {{nbd_disk}}p1 || exit 1
|
||||
@@ -74,7 +74,7 @@
|
||||
- name: stop here
|
||||
shell: |
|
||||
exit 1
|
||||
|
||||
|
||||
delegate_to: localhost
|
||||
when:
|
||||
- nbd_disk != ''
|
||||
|
||||
Reference in New Issue
Block a user