summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Hyotaek Shim [Fri, 21 Aug 2020 07:46:00 +0000 (16:46 +0900)]
Apply 1 ignore_zero_blocks optimization to dm-verity setup
Change-Id: I57e66b868eab7ab3b08a06c8bd3d97aa42c8040a
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Junghoon Kim [Fri, 7 Aug 2020 05:09:34 +0000 (14:09 +0900)]
scripts: init.sh: Remove the btrfs balance command
The upgraded mic package is adopted in the public image server and it
uses the metadata single option when building the btrfs image.
Thus, remove the btrfs balance command that changes the btrfs filesystem
to single metadata because this is redundant.
Change-Id: Iaf361b0daed2f995f526ade51e9e60ad3212a201
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
INSUN PYO [Tue, 4 Aug 2020 04:49:51 +0000 (13:49 +0900)]
scripts: init.sh: change old directory of pivot_root
The /sysroot is always read-only when dm-verity is enabled.
So, we can not create /sysroot/initrd.
The /sysroot/mnt/initrd directory is created by initrd package and we can use it instead of /sysroot/initrd.
Change-Id: Iad3ed304c2bd58e5823cbcdac4cb7dd530ef4102
INSUN PYO [Fri, 31 Jul 2020 05:48:00 +0000 (14:48 +0900)]
Enable dmverity
Change-Id: Ib83af50f2b1b7788f8aec6d51bb8c880a4b664ea
INSUN PYO [Fri, 31 Jul 2020 09:11:18 +0000 (18:11 +0900)]
dm-verity: change dm-verity tool from veritysetup to dmsetup
The current version of veritysetup does not support some options.
- ignore_corruption
- restart_on_corruption
- ignore_zero_blocks
- check_at_most_once
Refer: https://gitlab.com/cryptsetup/cryptsetup/-/wikis/DMVerity
Change-Id: If50db143182444153c643bfd1ba11f26b61c7df0
INSUN PYO [Thu, 30 Jul 2020 06:01:45 +0000 (15:01 +0900)]
dm-verity: fix booting fail on non dm-verity target
Second reboot fails on non dm-verity target.
The initrd reads meta data for dm-verity in the area after block size,
because block size and partition size are the same by resize2fs.
A dd util is used, and dd waits indefinitely for reading outside this region.
|---------------------------------------------|
| | expected meta |
|____________________________|________________|
^
|
partiion end
block end
This also happens on the second boot, after "verityctl disable" on dm-verity target.
Change-Id: I948b80d94b9251c88aac13eec1f62e0719681ac0
INSUN PYO [Wed, 29 Jul 2020 06:40:37 +0000 (15:40 +0900)]
dm-verity: implement "verityctl format" and "verityctl disable" command
Change-Id: I630c40e7e673fa71f3709e9789ba176a91c26db0
INSUN PYO [Tue, 28 Jul 2020 10:28:13 +0000 (19:28 +0900)]
dm-verity: add /usr/bin/verityctl and implement "verityctl format" command
Change-Id: I1d37793cc9344c1c42a532cd599cd3821053a685
INSUN PYO [Fri, 24 Jul 2020 04:59:03 +0000 (13:59 +0900)]
Add veritytool package for dm-verity
Change-Id: I3f699f58408d5b1c5fa167efdfe232c5d25193cb
Seung-Woo Kim [Tue, 16 Jun 2020 02:11:57 +0000 (11:11 +0900)]
postscript: apply arch difference
Each architecture has different ld.so path and initrd path. Apply
arch difference for postscript to create image. Also, append 64-bit
only file list.
Change-Id: I0fe393cd4b4a4b2ef32a2dcf2af0171bd80b6e0c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 16 Jun 2020 02:11:31 +0000 (11:11 +0900)]
postscript: support multiple list files
Support multiple list file to create ramdisk directory.
Change-Id: I683cc0e39f2f9c6be71ed2fa34b001e0839c5919
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Hyotaek Shim [Tue, 9 Jun 2020 04:25:16 +0000 (13:25 +0900)]
Add PATH=/bin:/usr/bin:/sbin:/usr/sbin to init.sh
Change-Id: Id7b2d1f94ee43d103eeae228ed28518afab21d27
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Junghoon Kim [Tue, 4 Feb 2020 04:05:48 +0000 (13:05 +0900)]
scripts: init.sh: Change btrfs compression algorithm
The OBS build system does not yet support zstd compression algorithm.
Change the btrfs compression algorithm to lzo before upgrading the OBS
server.
Change-Id: Ibc6be7d3f5c9a3364a63aba27e5646c4a0fd58d8
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
Junghoon Kim [Tue, 14 Jan 2020 06:13:03 +0000 (15:13 +0900)]
Support the btrfs filesystem mount for the rootfs image
In order to support the btrfs rootfs image, the btrfs tool is required.
Also, the procedure of the rootfs mount is modified properly including
the consistency check and resize.
Change-Id: I7e39720dee943830d959c8d1d6f7e8fab139904f
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
INSUN PYO [Wed, 13 Mar 2019 09:02:42 +0000 (18:02 +0900)]
Fix resizefs: corrupted filesystem can not perform resizefs
//////////// Steps to reproduce the problem ///////////////////////
1. Flush all binary
2. Flush only user.img binary (tar cvfz user.tar.gz user.img)
3. remove /opt/var/.resizefs_done
4. remove and insert battery, and turn on device
5. user partition fails to execute resizefs.
///////////////////////////////////////////////////////////////////
//////////// UART Log on TM1 //////////////////////////////////////
resize2fs 1.43.4 (31-Jan-2017)
Resizing the filesystem on /dev/mmcblk0p25 to 1481216 (4k) blocks.
The filesystem on /dev/mmcblk0p25 is now 1481216 (4k) blocks long.
fsck from util-linux 2.30
e2fsck 1.43.4 (31-Jan-2017)
user: recovering journal
Setting free inodes count to 7301 (was 7434)
Setting free blocks count to 8022 (was 8489)
user: clean, 699/8000 files, 10286/18308 blocks
////////////////////////////////////////////////////////////////////
///// df - user partition is 18308 blocks, not 1481216 /////////////
/dev/mmcblk0p25 38448 6008 30976 17% /opt/usr
////////////////////////////////////////////////////////////////////
Change-Id: I8ee7161b504a56fb859af2472ef3295601f02ce6
INSUN PYO [Wed, 13 Mar 2019 06:05:18 +0000 (15:05 +0900)]
Fix race condition
Power is turned off as soon as /opt/var/.resizefs_done is written.
Rootfs, userfs and module partition does not execute resizefs foreever.
Change-Id: I5eb2ebb3135443ff21cbbaf4944f0a759940e76a
INSUN PYO [Fri, 8 Mar 2019 10:14:17 +0000 (19:14 +0900)]
Perform resizefs for /opt/usr
If device is encrypted, skip resizefs and fsck for /opt/usr.
Change-Id: Ib563b522f8eef201aca4c7103a2166d576e7051a
Hyotaek Shim [Thu, 7 Feb 2019 12:21:43 +0000 (21:21 +0900)]
Rename regarding fsck/resize2fs
Change-Id: I827455495952a4c34d6c23d5fcec8fd338e2d3c5
Hyotaek Shim [Wed, 19 Sep 2018 11:45:14 +0000 (20:45 +0900)]
Create /dev, /proc, and /sys directories before mounting
This is required in case that rootfs does not contain the directories.
Change-Id: I0bd0a09d52597bc6569de3b9c9e0f32a480b4661
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Wed, 18 Apr 2018 11:57:19 +0000 (20:57 +0900)]
Perform fsck on each booting
Change-Id: I063c8bbf2f9ca0b0c995a1dd8260bfab7efe41f6
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Fri, 9 Feb 2018 02:07:59 +0000 (11:07 +0900)]
Bug fix: change the location of rootfs(/sysroot) read-only mount
Change-Id: Ica45471e6801ceca95d14a0be1a6d1dc75712814
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Mon, 18 Dec 2017 09:24:04 +0000 (18:24 +0900)]
Mount rootfs -o ro
This is security requirement for preventing rootfs
from being writable during boot time
Change-Id: Ia649f5ccafa0f80ab87776ce567cc063dee9b544
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
wchang kim [Wed, 30 Aug 2017 04:14:41 +0000 (13:14 +0900)]
Adding to mount squashfs for gps tracker image.
If /opt/sqsh_usr.img exists, initrd mounts it to /usr and then mounts /usr/lib/modules.
or it mounts /usr/lib/modules.
Change-Id: I9100185631770a00efba63d428e2248b61c7ee9d
Signed-off-by: Woochang Kim <wchang.kim@.samsung.com
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
INSUN PYO [Thu, 18 May 2017 01:23:13 +0000 (10:23 +0900)]
License: install license file (LICENSE.Apache-2.0) in the spec
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: If71867aefe0145d6e3bb4d58a83aaac050b5d9bf
Yunmi Ha [Thu, 6 Apr 2017 01:58:13 +0000 (10:58 +0900)]
Make caching file for imporoving performance.
Previously, init.sh resize and check the filesystem every time.
It makes growing in booting time.
To reduce this, init.sh makes chache file for checking first boot or not.
Only when boot the first time, init.sh will resize and check the filesystem.
Change-Id: I31dbe37e59029365098b45cdfcb0dba95a11d8c0
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Yunmi Ha [Wed, 29 Mar 2017 06:54:08 +0000 (15:54 +0900)]
Add blkid.conf file to ramdisk
blkid.conf file has directory information for caching.
blkid will use caching data refer to this config.
Change-Id: I66d5ea8783313795a1b91f71813dc2d7acd35400
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Seung-Woo Kim [Wed, 29 Mar 2017 03:37:03 +0000 (12:37 +0900)]
init: fix not to use found modules partition as rootfs
If there is no file system volume label "modules" and it is only
partition label, then booting will be failed because it sets the
partition as rootfs. So this fixes not to use found partition as
rootfs.
Change-Id: Iec3e3d3a3c53fb8a5080c68956a9c4fb621db41b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Silas Jeon [Tue, 31 Jan 2017 04:48:44 +0000 (13:48 +0900)]
Make initrd package
Change-Id: Ic7a2ce8856e0f8f0566183d2841e5a471fdec7ed
Tizen Infrastructure [Mon, 13 Feb 2017 05:02:48 +0000 (21:02 -0800)]
Initial empty repository