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

Library imaging workflow & support /library on a different partiton or storage device. #3051

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

jvonau
Copy link
Contributor

@jvonau jvonau commented Nov 27, 2021

Not sure why I bother but this might be helpful, hit me up on skype for an explanation.

@holta holta changed the title Library img Library img [Create portable /library container?] Nov 27, 2021
@holta holta added this to the 8.0 milestone Nov 27, 2021
@jvonau jvonau force-pushed the library-img branch 2 times, most recently from bca0a27 to 7cfaebd Compare December 5, 2021 17:22
@jvonau
Copy link
Contributor Author

jvonau commented Dec 6, 2021

Create the multipass VM multipass launch --name local-2110 21.10
Open shell on VM multipass shell local-2110
In the VM sudo apt update sudo apt -y upgrade sudo reboot
Provide a shared directory into the VM multipass mount /media/usb0/output local-2110:/output
Save provided local_vars.yml.txt in the host 'output' directory as local_vars.yml
Warning might have to comment out library_base_url in local_vars.yml.
Open shell on VM multipass shell local-2110
In the VM:
sudo mkdir /etc/iiab
sudo cp /output/local_vars.yml /etc/iiab/
curl d.iiab.io/risky.txt | sudo bash -s 3051

This is a testing point for the web based retrieval and reuse at f651a57
base-manifest.txt
kalite-manifest.txt
local_vars.yml.txt
maps-manifest.txt

@jvonau
Copy link
Contributor Author

jvonau commented Dec 6, 2021

ubuntu@local-2110:/opt/iiab/iiab$ ls -l /output/
total 4403400
-rwxr-xr-x 1 root root      65878 Dec  5 06:24 base-manifest.txt
-rwxr-xr-x 1 root root  104857600 Dec  5 11:35 base.img
-rwxr-xr-x 1 root root      26703 Dec  6 13:32 kalite-manifest.txt
-rwxr-xr-x 1 root root 2097152000 Dec  6 13:32 kalite.img
-rwxr-xr-x 1 root root      16059 Dec  6 15:00 local_vars.yml
-rwxr-xr-x 1 root root      16059 Dec  6 14:30 local_vars.yml.txt
-rwxr-xr-x 1 root root      72778 Dec  5 12:37 maps-manifest.txt
-rwxr-xr-x 1 root root  209715200 Dec  5 20:32 maps.img
-rwxr-xr-x 1 root root 2097152000 Dec  5 08:30 test.img

@jvonau
Copy link
Contributor Author

jvonau commented May 30, 2022

Brainwave, the '/library image file' could be partitioned and thus directly writable to any usb storage device, trickier to setup via fstab if I recall correctly.

@jvonau
Copy link
Contributor Author

jvonau commented May 31, 2022

Notes for partitioned image workflow changes, image writable directly to external device.
sudo parted /opt/test.img -- mklabel msdos
sudo parted /opt/test.img -- mkpart primary 1MiB 100%
sudo losetup -P -f /opt/test.img
sudo losetup | grep /opt/test.img returned loop5
sudo mkfs.ext4 /dev/loop5p1
sudo losetup -D /opt/test.img
in fstab /opt/test.img /mnt ext4 loop,offset=1048576 0 0
sudo mount -a

@jvonau
Copy link
Contributor Author

jvonau commented Jun 3, 2022

to just add entries for an external drive use for example:
has_ext_disk: True
library_loc: disk
library_name: IIAB-LIBRARY-EXT

@jvonau jvonau changed the title Library img [Create portable /library container?] Library imaging workflow & support /library on a different partiton or storage device. Jun 16, 2022
@holta holta modified the milestones: 8.1, 8.2 Jan 1, 2023
@holta holta modified the milestones: 8.2, 8.3 Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants