Restrict search for python object files to ./usr
Traversing the /proc filesystem causes find to error if it changes while its being searched. We have had a lot of ci failures on this find command since it was added in Ibe40e6b8b884f37e3b5aeab6e7654593bcd63123 Change-Id: Ia8cfc923cce749a69d5108e588db2360238d866c Closes-Bug: #1501949
This commit is contained in:
parent
3972510d20
commit
68856c6006
@ -19,7 +19,7 @@ sudo mv ./tmp/fstab.new ./etc/fstab
|
|||||||
sudo ln -s ./sbin/init ./
|
sudo ln -s ./sbin/init ./
|
||||||
|
|
||||||
# Remove python object files, they're not particularly useful for a ramdisk
|
# Remove python object files, they're not particularly useful for a ramdisk
|
||||||
sudo find . -name "*.pyc" -or -name "*.pyo" -delete
|
sudo find ./usr -name "*.pyc" -or -name "*.pyo" -delete
|
||||||
|
|
||||||
sudo find . -path './sys/*' -prune -o -path './proc/*' -prune -o -path './tmp/*' -prune -o -path './boot/*' -prune -o -path './root/*' -prune -o -path './usr/lib/locale/*' -prune -o -path './usr/share/doc/*' -prune -o -path './usr/share/man/*' -prune -o -path './usr/share/info/*' -prune -o -path './usr/share/licenses/*' -prune -o -path './usr/share/misc/*' -prune -o -print | sudo cpio -o -H newc | gzip > ${IMAGE_PATH}.initramfs
|
sudo find . -path './sys/*' -prune -o -path './proc/*' -prune -o -path './tmp/*' -prune -o -path './boot/*' -prune -o -path './root/*' -prune -o -path './usr/lib/locale/*' -prune -o -path './usr/share/doc/*' -prune -o -path './usr/share/man/*' -prune -o -path './usr/share/info/*' -prune -o -path './usr/share/licenses/*' -prune -o -path './usr/share/misc/*' -prune -o -print | sudo cpio -o -H newc | gzip > ${IMAGE_PATH}.initramfs
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user