iiab
iiab copied to clipboard
Library imaging workflow & support /library on a different partiton or storage device.
Not sure why I bother but this might be helpful, hit me up on skype for an explanation.
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
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
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.
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
to just add entries for an external drive use for example: has_ext_disk: True library_loc: disk library_name: IIAB-LIBRARY-EXT