-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
Signed-off-by: Daniel <[email protected]>
Signed-off-by: Daniel <[email protected]>
appliances/Harbor/appliance.sh
Outdated
fi | ||
|
||
# Check if /dev/vda exists | ||
if [ -e "/dev/vda" ]; then |
There was a problem hiding this comment.
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
appliances/Harbor/appliance.sh
Outdated
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 |
There was a problem hiding this comment.
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
Signed-off-by: Daniel <[email protected]>
Signed-off-by: Daniel <[email protected]>
Signed-off-by: Daniel <[email protected]>
Signed-off-by: Daniel <[email protected]>
Signed-off-by: Daniel <[email protected]>
Signed-off-by: Daniel <[email protected]>
Signed-off-by: Daniel <[email protected]>
Signed-off-by: Daniel <[email protected]>
Signed-off-by: Daniel <[email protected]>
Signed-off-by: Daniel <[email protected]>
Signed-off-by: Daniel <[email protected]>
Signed-off-by: Daniel <[email protected]>
Signed-off-by: Daniel <[email protected]>
No description provided.