Skip to content
Snippets Groups Projects
Commit 302d0f8c authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

Neue Targets rootfs_unsquash und rootfs_prepare

rootfs_unsquash: Entpackt das Rootfs der ISO Datei
rootfs_prepare: Kopiert zum remastern benötigte Dateien in das entpackte rootfs nach /remaster
Über config/copy_torootfs_remaster_dir können die zu kopierenden Dateien konfiguriert werden.
parent 1f9353b5
Branches
Tags
No related merge requests found
......@@ -58,10 +58,14 @@ iso_clean :
$(RM) -r "$(ISO_IMAGE_DEST)"
#TODO: generic unsquash/squash with magic make variables ($@ etc.)
rootfs_unsquash : | $(SQUASHFS_SOURCE)
rootfs_unsquash $(ROOTFS) : | $(SQUASHFS_SOURCE)
$(RM) -r "$(ROOTFS)"
unsquashfs -f -d "$(ROOTFS)" "$(SQUASHFS_SOURCE)"
rootfs_prepare : $(ROOTFS)
mkdir -p "$(ROOTFS)/remaster"
cp -Lr "$(CURDIR)"/config/copy_to_rootfs_remaster_dir/* "$(ROOTFS)/remaster"
initrd_unpack : | $(INITRD_SOURCE)
mkdir -p "$(INITRD)"
cd "$(INITRD)" && lzma -d < "$(INITRD_SOURCE)" | cpio -i
......
../../contrib/rootfs
\ No newline at end of file
../../patches/rootfs
\ No newline at end of file
../../scripts
\ No newline at end of file
#!/bin/bash
SCRIPT_DIR="$1"
CONTRIB_DIR="$SCRIPT_DIR/contrib/rootfs"
SCRIPT_DIR="/remaster"
CONTRIB_DIR="$SCRIPT_DIR/contrib/"
#TODO: Disable initctl
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment