aboutsummaryrefslogtreecommitdiff
path: root/scripts/disk_image
Commit message (Collapse)AuthorAgeFilesLines
* Add LOAD_CMD parsing to disk_imageStefano Stabellini2021-05-171-2/+23
| | | | | Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com> Reviewed-by: Brian Woods <brian.woods@xilinx.com>
* Remove Debug executionStefano Stabellini2021-05-171-1/+1
| | | | | Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com> Reviewed-by: Brian Woods <brian.woods@xilinx.com>
* Add support for tar.gz rootfsesStefano Stabellini2021-05-171-5/+14
| | | | | | Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com> Signed-off-by: VĂ­ctor Mayoral Vilches <v.mayoralv@gmail.com> Reviewed-by: Brian Woods <brian.woods@xilinx.com>
* Introduce multiple partitions support to disk_imageStefano Stabellini2021-05-171-41/+96
| | | | | | | | | | | | | | | | | | Rootfses that should be written to disk as their own partition are called *_ROOTFS instead of *_RAMDISK. This change makes the config file clearer and more consistent. However it changes the current behavior as the Dom0 RAMDISK (not ROOTFS) was written to disk as its own partition before, and now it is not. In the case of uboot-script-gen, dom0less guests cannot access disk partitions yet (missing PV drivers support). Hence, if one or more domU ROOTFSes are specified, print an error and exit. For dom0, base the root= parameter generation on the presence of DOM0_ROOTFS. Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com> Signed-off-by: Brian Woods <brian.woods@xilinx.com> Reviewed-by: Brian Woods <brian.woods@xilinx.com>
* Use stat -L instead of stat, file -L instead of fileStefano Stabellini2020-04-141-9/+9
| | | | | | | | | | Use stat -L and file -L so that the two tools follow symlinks correctly. Also fix an error in check_file_type: the error function is called cleanup_and_return_err, not clean_up_and_err_out. Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com> Reviewed-by: Brian Woods <brian.woods@xilinx.com>
* Fix DESTDIR path in disk_imageBrian Woods2019-10-251-8/+9
| | | | | | | | | | When the user supplies a relative path to use as a working tmp directory, the path is broken when a cd occurs in the script. Fix this by using the absolute path for DESTDIR when we cd. Fixes: "Fix copying files to boot partition in disk_image" Signed-off-by: Brian Woods <brian.woods@xilinx.com> Acked-by: Stefano Stabellini <sstabellini@kernel.org>
* Add command line arguments for disk_imageBrian Woods2019-10-251-7/+83
| | | | | | | | | Add some simple command line arguments and some dependency checking that makes running the script outside of a container much easier. Signed-off-by: Brian Woods <brian.woods@xilinx.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
* Convert indentation of disk_imageBrian Woods2019-10-251-23/+23
| | | | | | | | Convert the indentation of disk_image to 4 space from hard tabs so that it matches the rest of the Imagebuilder scripts. Signed-off-by: Brian Woods <brian.woods@xilinx.com> Acked-by: Stefano Stabellini <sstabellini@kernel.org>
* Fix copying files to boot partition in disk_imageBrian Woods2019-10-241-2/+24
| | | | | | | | | | Copy only the files that were used to generate the size of the boot partition. This fixes a bug where if the Dom0 ramdisk is over ~16M the boot partition will run out of space since everything in the directory is copied over. Signed-off-by: Brian Woods <brian.woods@xilinx.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
* Fix hardcoded dom0 ramdisk name in disk_imageBrian Woods2019-10-241-4/+5
| | | | | | | | Get rid of a hardcoded dom0 ramdisk name so that it doesn't err out when the name is different. Signed-off-by: Brian Woods <brian.woods@xilinx.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
* Rename docker-extras to scriptsStefano Stabellini2019-10-211-0/+134
Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>