Skip to content

Commit 646a819

Browse files
Ana Guerrero Lopezgctucker
authored andcommitted
Add three new images with the full debian system
The images are: full.rootfs-\${arch}.tar.xz full.rootfs-${arch}.cpio.gz rootfs-\${arch}.ext4.xz They include a full debian system freshly debootstraped without kernel or firmware Signed-off-by: Ana Guerrero Lopez <[email protected]>
1 parent e3b8501 commit 646a819

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

jenkins/debian/debos/stretch.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,40 @@ actions:
7171
chroot: true
7272
command: rm /usr/lib/tmpfiles.d/dbus.conf
7373

74+
- action: run
75+
description: Create full archive
76+
chroot: false
77+
command: cd ${ROOTDIR} ; tar cvfJ ${ARTIFACTDIR}/{{ $basename -}}/full.rootfs.tar.xz .
78+
79+
- action: run
80+
description: Create full cpio archive
81+
chroot: false
82+
command: cd ${ROOTDIR} ; find -H | cpio -H newc -v -o | gzip -c - > ${ARTIFACTDIR}/{{ $basename -}}/full.rootfs.cpio.gz
83+
84+
- action: image-partition
85+
imagename: rootfs.ext4
86+
imagesize: 500MB
87+
partitiontype: msdos
88+
mountpoints:
89+
- mountpoint: /
90+
partition: root
91+
partitions:
92+
- name: root
93+
fs: ext4
94+
start: 0%
95+
end: 100%
96+
flags: [ boot ]
97+
98+
- action: filesystem-deploy
99+
description: Deploying filesystem onto image
100+
101+
- action: run
102+
description: Move image to output directory
103+
command: mv ${ARTIFACTDIR}/rootfs.ext4 ${ARTIFACTDIR}/{{ $basename -}}/
104+
105+
- action: run
106+
command: xz -f ${ARTIFACTDIR}/{{ $basename -}}/rootfs.ext4
107+
74108
- action: run
75109
description: update-initramfs step
76110
chroot: true

vars/buildImage.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ def makeImageStep(String pipeline_version, String arch, String debian_arch, Stri
5757
"""
5858
archiveArtifacts artifacts: "${pipeline_version}/${arch}/initrd.cpio.gz", fingerprint: true
5959
archiveArtifacts artifacts: "${pipeline_version}/${arch}/rootfs.cpio.gz", fingerprint: true
60+
archiveArtifacts artifacts: "${pipeline_version}/${arch}/full.rootfs.tar.xz", fingerprint: true
61+
archiveArtifacts artifacts: "${pipeline_version}/${arch}/full.rootfs.cpio.gz", fingerprint: true
62+
archiveArtifacts artifacts: "${pipeline_version}/${arch}/rootfs.ext4.xz", fingerprint: true
6063
}
6164
}
6265
}

0 commit comments

Comments
 (0)