Re: [isar-cip-core] image: export dpkg status file for debsecan


Daniel Sangorrin <daniel.sangorrin@...>
 

Hi Jan,

Now it seems to work. I think it was some subtle issue with the use of quotes.

Thanks,
Daniel

-----Original Message-----
From: sangorrin daniel(サンゴリン ダニエル □SWC◯ACT)
Sent: Thursday, October 1, 2020 9:23 AM
To: 'Jan Kiszka' <jan.kiszka@...>; cip-dev@...
Subject: RE: [cip-dev] [isar-cip-core] image: export dpkg status file for debsecan

Hi Jan,

I forgot to reply one comment.

+# for cip-core-sec/debsecan
+ROOTFS_POSTPROCESS_COMMAND += "export_dpkg_status"
+export_dpkg_status() {
+ sudo -E chroot --userspec=$(id -u):$(id -g) '${ROOTFSDIR}' \
+ cat /var/lib/dpkg/status > \
+ ${ROOTFS_MANIFEST_DEPLOY_DIR}/"${PF}".dpkg_status
This is just a copy-out, I don't see the chroot need here.
This was based on the generate_manifest function.
For some reason, copying without chroot didn't work for me. I will give it another try.

Thanks,
Daniel

Join cip-dev@lists.cip-project.org to automatically receive all group messages.