| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
for raspi
Hence also fix BOOT_FSTYPE on fstab for mutable images (remount ro -> rw).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
-
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
for 2nd parition)
|
|
|
|
| |
'has_journal' for writable image
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Also move the `/data/sdcard` copy of '/boot' to stage2 and custom stages,
only used in ROOTFS_RO.
|
|
|
|
|
|
| |
the 2nd partition using remainder of QCOW2_SIZE
For rootfs read-only mode, we give a zero extra percentage for user root.
|
|
|
|
| |
(export-image, make_bootable); Add 'sdcard' folder in DEPLOY_DIR
|
|
|
|
| |
raw-image) and don't set NBD_DEV (bugfix)
|
|
|
|
| |
rootfs size only (on bigger partition)
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|