summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2024-03-01 18:19:31 +0100
committerJaehoon Chung <jh80.chung@samsung.com>2024-06-24 04:43:18 +0000
commit2264a92523da04df016e4a5edd3c5a471e04ebec (patch)
tree16447db92ca55d60c89ef6585f6060eb70811b19
parenta7ed6819eb5405ede668c301af43284150ca0385 (diff)
downloadmeta-2264a92523da04df016e4a5edd3c5a471e04ebec.tar.gz
meta-2264a92523da04df016e4a5edd3c5a471e04ebec.tar.bz2
meta-2264a92523da04df016e4a5edd3c5a471e04ebec.zip
ramdisk: switch from initrd (ext4 based) to initramfs (cpio.gz based) format
Initrd-style booting is deprecated since Linux kernel commit 9acc17baf1fd ("initrd: mark initrd support as deprecated") included in v5.9 release. Since commit ff26956875c2 ("brd: remove support for BLKFLSBUF") included in Linux kernel v4.10 it is no longer possible to free the memory occupied by the initrd. Switch Tizen ramdisk images to initramfs format (cpio.gz based) to comply with the new approach of starting Linux based systems. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: Ie2658e0a445ea4c4a55d53e3b6e51c0c38d69496
-rw-r--r--partitions/btrfs-rootfs-2parts-ramdisk-recovery4
-rw-r--r--partitions/common-2parts-ramdisk-recovery4
-rw-r--r--partitions/common-3parts-ramdisk2
-rw-r--r--partitions/common-3parts-ramdisk-recovery4
4 files changed, 7 insertions, 7 deletions
diff --git a/partitions/btrfs-rootfs-2parts-ramdisk-recovery b/partitions/btrfs-rootfs-2parts-ramdisk-recovery
index 7f9bfae..966c0bb 100644
--- a/partitions/btrfs-rootfs-2parts-ramdisk-recovery
+++ b/partitions/btrfs-rootfs-2parts-ramdisk-recovery
@@ -1,4 +1,4 @@
part / --size=1024 --ondisk mmcblk0p --fstype=btrfs --label=rootfs --fsoptions=defaults,noatime,compress-force=lzo
part /opt/ --size=512 --ondisk mmcblk0p --fstype=ext4 --label=system-data --extoptions="-m 0"
-part /mnt/initrd --size=32 --ondisk mmcblk0p --fstype=ext4 --label=ramdisk --extoptions="-b 1024 -O ^has_journal"
-part /mnt/initrd-recovery --size=32 --ondisk mmcblk0p --fstype=ext4 --label=ramdisk-recovery --extoptions="-b 1024 -O ^has_journal"
+part /mnt/initrd --size=32 --ondisk mmcblk0p --fstype=cpio --label=ramdisk --cpiooptions="--format=newc"
+part /mnt/initrd-recovery --size=32 --ondisk mmcblk0p --fstype=cpio --label=ramdisk-recovery --cpiooptions="--format=newc"
diff --git a/partitions/common-2parts-ramdisk-recovery b/partitions/common-2parts-ramdisk-recovery
index 85c2748..1088758 100644
--- a/partitions/common-2parts-ramdisk-recovery
+++ b/partitions/common-2parts-ramdisk-recovery
@@ -1,4 +1,4 @@
part / --size=1024 --ondisk mmcblk0p --fstype=ext4 --label=rootfs --extoptions="-J size=16"
part /opt/ --size=512 --ondisk mmcblk0p --fstype=ext4 --label=system-data --extoptions="-m 0"
-part /mnt/initrd --size=32 --ondisk mmcblk0p --fstype=ext4 --label=ramdisk --extoptions="-b 1024 -O ^has_journal"
-part /mnt/initrd-recovery --size=32 --ondisk mmcblk0p --fstype=ext4 --label=ramdisk-recovery --extoptions="-b 1024 -O ^has_journal"
+part /mnt/initrd --size=32 --ondisk mmcblk0p --fstype=cpio --label=ramdisk --cpiooptions="--format=newc"
+part /mnt/initrd-recovery --size=32 --ondisk mmcblk0p --fstype=cpio --label=ramdisk-recovery --cpiooptions="--format=newc"
diff --git a/partitions/common-3parts-ramdisk b/partitions/common-3parts-ramdisk
index fd3d2ba..233af0e 100644
--- a/partitions/common-3parts-ramdisk
+++ b/partitions/common-3parts-ramdisk
@@ -1,4 +1,4 @@
part / --fstype="ext4" --size=3500 --ondisk=mmcblk0 --label rootfs --fsoptions=defaults,noatime
part /opt --fstype="ext4" --size=512 --ondisk=mmcblk0 --label system-data --fsoptions=defaults,noatime
part /opt/usr --fstype="ext4" --size=3500 --ondisk=mmcblk0 --label user --fsoptions=defaults,noatime
-part /mnt/initrd --size=8 --ondisk mmcblk0p --fstype=ext4 --label=ramdisk --extoptions="-b 1024 -O ^has_journal"
+part /mnt/initrd --size=8 --ondisk mmcblk0p --fstype=cpio --label=ramdisk --cpiooptions="--format=newc"
diff --git a/partitions/common-3parts-ramdisk-recovery b/partitions/common-3parts-ramdisk-recovery
index 3ffd01a..a272f0a 100644
--- a/partitions/common-3parts-ramdisk-recovery
+++ b/partitions/common-3parts-ramdisk-recovery
@@ -1,5 +1,5 @@
part / --fstype="ext4" --size=3500 --ondisk=mmcblk0 --label rootfs --fsoptions=defaults,noatime
part /opt --fstype="ext4" --size=512 --ondisk=mmcblk0 --label system-data --fsoptions=defaults,noatime
part /opt/usr --fstype="f2fs" --size=500 --ondisk=mmcblk0 --label user --fsoptions=defaults,noatime
-part /mnt/initrd --size=32 --ondisk mmcblk0p --fstype=ext4 --label=ramdisk --extoptions="-b 1024 -O ^has_journal"
-part /mnt/initrd-recovery --size=32 --ondisk mmcblk0p --fstype=ext4 --label=ramdisk-recovery --extoptions="-b 1024 -O ^has_journal"
+part /mnt/initrd --size=32 --ondisk mmcblk0p --fstype=cpio --label=ramdisk --cpiooptions="--format=newc"
+part /mnt/initrd-recovery --size=32 --ondisk mmcblk0p --fstype=cpio --label=ramdisk-recovery --cpiooptions="--format=newc"