I want to create an image that boots up believing that it's in the year 2038 so I can test some epoch stuff on my company's product.
I'm going about this by trying to force a value on the /etc/timestamp
file. I'm not sure that's a great strategy for this goal; so if it isn't then I'll ask a separate question about what approach I should take.
I found that image.bbclass
has a function called rootfs_upate_timestamp
, so I thought to inherit that class and overwrite the function.
Here's the recipe I created. It's located in ./meta-custom-base/recipes-stuff/custom-timestamp/
.
# custom-timestamp.bb
inherit image
rootfs_update_timestamp() {
echo "20380119000000" > ${IMAGE_ROOTFS}/etc/timestamp
}
The error is a massive wall of red-colored package names, and at the top it reads custom-timestamp is not a part of the base feeds
This layer has other recipes that are getting installed, and I've also added a line to the *image.bbappend
like
IMAGE_INSTALL_append = " other-package-that-installs-fine"
IMAGE_INSTALL_append = " custom-timestamp"
So why am I getting this error, and how can I ensure my custom /etc/timestamp
gets installed?