aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qcow2_handling
Commit message (Collapse)AuthorAgeFilesLines
* make_bootable_image: Mutable images require UUID in fstab and kernel cmdline ↵Sven Gothel2021-07-221-15/+16
| | | | | | for raspi Hence also fix BOOT_FSTYPE on fstab for mutable images (remount ro -> rw).
* Refine boot process of build target and allow config of /boot fstype and ↵Sven Gothel2021-07-221-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mount-options - Add env-vars BOOT_FSTYPE and BOOT_FSOPTIONS, supporting customizing the boot filesystem type and options - FAT_CODEPAGE (if using BOOT_FSTYPE vfat, default) is hardcoded '437' - Add 'lsof', allowing to check open listening ports (besides netstat) - On Raspi: Use plymouth splash screen for all configurations, theme 'pix' - Add systemd resize2fs_once.service to have it start very early to resize the rootfs partition for RW rootfs - No kernel argument 'rootwait' for initramfs/grub root=file boot loop_rootfs (initram): - kill spawn-off pipe copy process (LOOP_ROOTFS_LOG_PIDS) - Use BOOT_FSTYPE, BOOT_FSOPTIONS (incl mounting /boot).. - Use dedicated fsck.BOOT_FSTYPE if possible (and quiet) - Log fsck and mount attempts, failure and success - Stage2 01-sys-tweaks fixes: - Only disable systemd-remount-fs for ROOTFS_RO - Only generate /boot/loop_rootfs.id for ROOTFS_RO - Kernel Modules: Add codepage 437 and 850, drm and vc4 (raspi only) - Use TARGET_ARCH in all situations - On RW rootfs, grub-install with ext2 module -
* Enhance NBD/Image handling via imagetool.sh (use reusable stateless ↵Sven Gothel2021-07-181-32/+37
| | | | | | | | | | functions from new lib_nbd_img_handling) imagetool.sh - new connect* and disconnect - mount/umount stateless, multiple usage - lib_nbd_img_handling used as base implementation for qcow2_handling and imagetool.sh
* multi-arch: Support vanilla Debian for 'amd64' and 'i386' architecture incl. ↵Sven Gothel2021-07-171-4/+8
| | | | | | | | | | | | | | | | | | | | | | | loop_rootfs using grub (WIP) - Generic packages: nn-packages[-RELEASE] (using the optional '-RELEASE' variant) - System packages: nn-packages-sys-(raspi|debian)[-RELEASE] (using the optional '-RELEASE' variant), allow to distinguish not only for the RELEASE but the actual underlying distribution. - On debian amd64, all required usb-storage etc modules are loaded for loop_rootfs/initrd - loop_rootfs works on Raspi (Proprietary Bootloader) as well as on Debian (Grub Bootloader) - loop_rootfs uses the first vfat block-device partition for /boot - /boot will be mounted by loop_rootfs and handed over to new root-mount-point, this avoids issues of using an undefined /boot partition (but the first) - rotatelog_init_rootfs: Rotates /boot/init_rootfs.log if having more than 500 lines - FIX export-image: Copy the rootfs.img to the exported full image, which allows testing the image directly via qemu .. etc.
* qcow2_handling: Use fixed PART_NO (at least a variable)Sven Gothel2021-07-091-2/+3
|
* scripts/qcow2_handling: Reactivate partition resizing (Fix PART_START grep ↵Sven Gothel2021-07-091-7/+6
| | | | for 2nd parition)
* qcow2_handling mkfs.ext4: Reenable dropping 'huge_file' feature and ↵Sven Gothel2021-07-091-3/+3
| | | | 'has_journal' for writable image
* None ROOTFS_RO: Only use 250 MiB vfat boot parition (as in arm64 branch)Sven Gothel2021-07-081-2/+13
|
* mkfs.ext4: Only set reserved-blocks-percentage to zero if ROOTFS_RO is setSven Gothel2021-07-081-1/+5
|
* Fix qcow2_handling make_boot*: cmdline.txt is below sys_arm64_000Sven Gothel2021-07-041-2/+2
|
* ROOTFS_RO: export_image: Cleanup and consider read-only or mutable rootfs...Sven Gothel2021-07-041-9/+3
| | | | | Also move the `/data/sdcard` copy of '/boot' to stage2 and custom stages, only used in ROOTFS_RO.
* qcow2_handling: Drop 3rd partition for 2nd rootfs; Now we are back to size ↵Sven Gothel2021-07-041-36/+30
| | | | | | the 2nd partition using remainder of QCOW2_SIZE For rootfs read-only mode, we give a zero extra percentage for user root.
* ro: drop data partition; Use /dev/mmcblk0p[12] for generic deployment ↵Sven Gothel2021-07-021-38/+34
| | | | (export-image, make_bootable); Add 'sdcard' folder in DEPLOY_DIR
* qcow2_handling: Add more robustness, make imagetool.sh more usable (add ↵Sven Gothel2021-07-011-4/+56
| | | | raw-image) and don't set NBD_DEV (bugfix)
* ro: Adapt new 15200 MiB for 16GB sdcard layout, store raw rootfs image with ↵Sven Gothel2021-06-281-17/+31
| | | | rootfs size only (on bigger partition)
* ro: export the raw image of rootfs (export-image, qcow2_handling's ↵Sven Gothel2021-06-281-0/+44
| | | | | | | | make_bootable_image); Use gzip if `DEPLOY_ZIP == 1` Writing out the rootfs as a raw image, we simply use the new `connect_raw_blkdev` on the finalized raw image and dd the partition using the fs's block-size into a file.
* ro: Use sdcard layout 'Image-B' 1 boot (250MB), 2 data (1GB), 3 rootfs1 ↵Sven Gothel2021-06-281-51/+79
| | | | | | | | | | | (4GB), 4 rootfs2 (4GB); Keep full sized sdcard image. qcow2_handling: make_bootable_image() - Still resize rootfs, but keep the partition table intact for both 4GB rootfs. This keeps the scard image fully sized, but allows to mount and use all partitions. - Use `mount_rawimage` (qemu-nbd) for image mount instead of convoluted loop device
* ro: Inject overlayfs, using DATADEV '/data' partition as 'upper'; Disable ↵Sven Gothel2021-06-261-0/+1
| | | | | | | | | | | | rootfs resize @ init (1st boot) /etc/fstab didn't work to mount the overlayfs (boot freeze due to some dependencies). Hence we use our own 'overlay_mount.service' Before 'local_fs.target', which mounts '/data' and its overlays. We also disable rootfs resize @ init (1st boot), since the rootfs is immutable from here on.
* ro: new partition layout: 1 boot, 2 data, 3 rootfs (ro)Sven Gothel2021-06-261-7/+28
|
* Add QCOW2 build mechanism (#349)Holger Pandel2021-02-101-0/+256