Skip to content

Commit

Permalink
fix(install/preflight): cos
Browse files Browse the repository at this point in the history
longhorn/longhorn-9664

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
  • Loading branch information
c3y1huang authored and derekbit committed Oct 17, 2024
1 parent 76f65cd commit 3715dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/remote/preflight/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ IFS=',' read -ra LONGHORN_DATA_DIRS <<< "$LONGHORN_DATA_PATHS" # Split comma-se
# Function to check the operating system is Container Optimized OS (cos)
function check_operating_system() {
os=$(cat /etc/os-release | grep '^ID=' | cut -d= -f2)
os=$(cat ${HOST_MOUNT_DIR}/etc/os-release | grep '^ID=' | cut -d= -f2)
if [ "$os" != "cos" ]; then
echo "ERROR: Operating system ($os) is not Container Optimized OS (cos)"
exit 1
Expand Down

0 comments on commit 3715dba

Please sign in to comment.