mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-23 11:21:12 +00:00
fix: Create .filelist in ubuntu-cpc project binary hooks that do not use create_manifest shared function (LP: #2033751)
ubuntu-cpc project binary hooks were not all producing .filelist files as they were not using the create_manifest shared function. This commit ensures the disk-image-uefi, disk-image-ppc64el and disk-image-uefi-non-cloud hooks create a filelist during build.
This commit is contained in:
parent
c72d1a7f2b
commit
7dd9b1bd84
@ -75,6 +75,11 @@ make_ext4_partition "${rootfs_dev_mapper}"
|
||||
mkdir mountpoint
|
||||
mount "${rootfs_dev_mapper}" mountpoint
|
||||
cp -a chroot/* mountpoint/
|
||||
|
||||
# the image has been modified from its disk-image-uefi base so the manifest and filelist should be regenerated
|
||||
chroot mountpoint dpkg-query -W > binary/boot/filesystem.packages
|
||||
(cd mountpoint && find -xdev) | sort > binary/boot/filesystem.filelist
|
||||
|
||||
umount mountpoint
|
||||
rmdir mountpoint
|
||||
|
||||
|
@ -431,6 +431,10 @@ EOF
|
||||
rm mountpoint/tmp/device.map
|
||||
umount mountpoint/boot/efi
|
||||
mount
|
||||
|
||||
# create sorted filelist as the very last step before unmounting
|
||||
(cd mountpoint && find -xdev) | sort > binary/boot/filesystem.filelist
|
||||
|
||||
umount_partition mountpoint
|
||||
rmdir mountpoint
|
||||
}
|
||||
|
@ -151,6 +151,10 @@ install_grub() {
|
||||
rm mountpoint/tmp/device.map
|
||||
umount mountpoint/boot/efi
|
||||
mount
|
||||
|
||||
# create sorted filelist as the very last step before unmounting
|
||||
(cd mountpoint && find -xdev) | sort > binary/boot/filesystem.filelist
|
||||
|
||||
umount_partition mountpoint
|
||||
rmdir mountpoint
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user