23 Commits

Author SHA1 Message Date
Mark Spatz
502e5fa0e3
Remove QCOW2 build mechanism (#648) 2024-02-23 04:19:10 +00:00
Vasilis Tsiligiannis
1377e903b8
Ensure loop device partition nodes are created (#741)
Although the loop block device is created before attaching the image
to it, the devices for the partition that the image contains are still
not created. This patch creates those devices as well, when they are
not already available.

Fixes #482

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2024-01-04 11:05:51 +00:00
bamartin125
446f3e34c8
Adds call to mknod if loop dev does not exist after call to losetup -f (#483) 2023-08-17 16:24:47 +01:00
rfc6919
1d13a292a7
use a single partitioned loop device (#641) 2022-11-11 08:56:04 +00:00
Romain Bazile
5d044ba71b
Addition of a DEPLOY_COMPRESSION option to the configuration (#592) 2022-03-01 16:23:42 +00:00
Serge Schneider
2f12cf985a Remove IMG_DATE from work directories 2021-09-21 16:36:26 +01:00
Holger Pandel
bf8c9f5383
Add QCOW2 build mechanism (#349) 2021-02-10 10:37:15 +00:00
Serge Schneider
225f69828f os.json: Update kernel version automatically 2020-12-02 16:56:25 +00:00
kdoren
d1596451b9
workaround build failure on AWS M6g instances (#449) 2020-09-23 19:54:37 +01:00
Andrew Scheller
30a1528ae1 Switch to using parted's machine parseable output (#270) 2019-03-18 14:49:18 +00:00
Serge Schneider
fb23b8ba92 Replace pxz with xz -T0 2019-03-11 11:49:04 +00:00
Błażej Sowa
d88f536536 IMG_SUFFIX evaluation in export image (fix #241) 2019-01-22 17:33:18 +10:00
Błażej Sowa
08405eb792 Allow custom image filename 2018-12-21 04:11:13 +00:00
Serge Schneider
ff2d5edee1 shellcheck 2018-03-13 12:50:50 +00:00
Serge Schneider
fcb8cca6ce NOOBS: bsdtar with --numeric-owner 2017-08-22 13:03:21 +01:00
Serge Schneider
f2060a8ee2 export-noobs: enable NOOBS config script here instead of stage2 2017-07-28 13:35:46 +01:00
Claus F. Strasburger
667318116a Added Docker support (#40)
* Added Docker support

- replaced necessity for devicemapper (through kpartx) by using parted and
  losetup with offsets
- added Dockerfile
- added dependency for parted and grep
- added hints to README.md
- common: loop through unmounts, fix shellcheck warnings

* stage2: use debconf instead of console-setup patch. Fixes #41
2017-01-23 12:44:03 +00:00
Serge Schneider
06ba664bfc export-noobs: umount boot before archiving root
bsdtar does not add directories which are mountpoints. This removes /boot from
the archive and prevents init_resize.sh from working.
2016-11-29 14:42:40 +00:00
Serge Schneider
845496123b export-noobs: use gnutar format for bsdtar 2016-11-22 12:12:40 +00:00
Serge Schneider
09590eba4a export-noobs: use bsdtar 2016-11-21 18:00:51 +00:00
Joseph Carter
d1f766d2b8 Fix umount_image (#22)
* export-noobs/prerun.sh: Use nested mountpoint

While it seems elegant and intuitive to use separate bootfs and rootfs
mountpoints for compressing the partitions, doing so violates a
precondition of unmount_image that they be mounted as a tree.  This
causes the image to not be properly unmounted and detached.  A better
solution might be to pack up the previous stage's chroot directory, but
that rework can wait for the time being.

scripts/common.sh: Output device name correctly

A misplaced ) in unmount_image caused the loop device to be incorrectly
identified, resulting in a fair bit of chaos trying to unmount other
filesystems on /dev/mapper devices.  Such as / on a LUKS-encrypted
installation, for example.  The unmount will fail as it should and
build.sh will abort the build without any cleanup.  Best to avoid that.

These changes close RPi-Distro/pi-gen#19
2016-10-06 10:14:43 +01:00
Serge Schneider
dddb5b5f74 export-noobs: ensure STAGE_WORK_DIR exists 2016-05-27 13:22:06 +01:00
Serge Schneider
5add7283d4 Add noobs export stage 2016-05-27 11:56:23 +01:00