mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 14:36:58 +02:00
Merge pull request #155 from marineam/fix-img-check
fix(test_image_content): Remove check for localtime symlink
This commit is contained in:
commit
c46c2e1c57
@ -77,20 +77,6 @@ test_image_content() {
|
||||
fi
|
||||
done
|
||||
|
||||
# Check that /etc/localtime is a symbolic link pointing at
|
||||
# /var/lib/timezone/localtime.
|
||||
local localtime="$root/etc/localtime"
|
||||
if [ ! -L "$localtime" ]; then
|
||||
error "test_image_content: /etc/localtime is not a symbolic link"
|
||||
returncode=1
|
||||
else
|
||||
local dest=$(readlink "$localtime")
|
||||
if [ "$dest" != "/var/lib/timezone/localtime" ]; then
|
||||
error "test_image_content: /etc/localtime points at $dest"
|
||||
returncode=1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Check that the symlink-usr flag agrees with the filesystem state.
|
||||
# Things are likely to break if they don't match.
|
||||
if [[ $(ROOT="${root}" $portageq envvar USE) == *symlink-usr* ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user