Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F #79: Harbor code + persistency #87

Merged
merged 15 commits into from
May 10, 2024
Merged

Conversation

dgarcia18
Copy link
Contributor

No description provided.

@dgarcia18 dgarcia18 requested a review from sk4zuzu April 24, 2024 15:28
fi

# Check if /dev/vda exists
if [ -e "/dev/vda" ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll probably need a better way of getting the device, maybe a USER INPUT? so vda will depend on the driver used (e.g. sd vs vd) and the number of disks in the VM template. So probably the safest thing is to let the user input which device should be used for persistent data

msg info "/dev/vda is already mounted."
else
# Add entry to /etc/fstab for persistence
echo "/dev/vda /data ext4 defaults 0 2" | sudo tee -a /etc/fstab > /dev/null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why ext4? The volume can be xfs, we may get this from the VM template but maybe it is not there so we may need to use a blkinfo or similar

appliances/Harbor/appliance.sh Show resolved Hide resolved
appliances/Harbor/appliance.sh Outdated Show resolved Hide resolved
appliances/Harbor/appliance.sh Show resolved Hide resolved
appliances/Harbor/appliance.sh Outdated Show resolved Hide resolved
appliances/Harbor/appliance.sh Outdated Show resolved Hide resolved
appliances/Harbor/appliance.sh Outdated Show resolved Hide resolved
appliances/Harbor/appliance.sh Outdated Show resolved Hide resolved
appliances/Harbor/appliance.sh Outdated Show resolved Hide resolved
@rsmontero rsmontero merged commit efb2530 into OpenNebula:master May 10, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants