platform/core/system/initrd.git
2 years agoMount A/B variant of partition HAL if it exists 92/266992/1 accepted/tizen/unified/20211130.125550 submit/tizen/20211129.232451
Mateusz Moscicki [Tue, 23 Nov 2021 15:40:15 +0000 (16:40 +0100)]
Mount A/B variant of partition HAL if it exists

Change-Id: Ie0eca84ce06933c59d7615262b450513bbfd9727

3 years agoDo RW Update if the .do_rw_update flag is set 95/265795/2 accepted/tizen/unified/20211123.143824 submit/tizen/20211116.140204 submit/tizen/20211119.125959
Mateusz Moscicki [Thu, 28 Oct 2021 10:06:50 +0000 (12:06 +0200)]
Do RW Update if the .do_rw_update flag is set

Change-Id: Ice67a56bba985f3e4ca38f42d19836ed88d9dcef

3 years agoMount partitions from the specified A/B slot 94/265794/2
Mateusz Moscicki [Wed, 27 Oct 2021 14:43:43 +0000 (16:43 +0200)]
Mount partitions from the specified A/B slot

Slot is specified by partition_ab= in /proc/cmdline
If a slot is not specified, partitions will be mounted without regard to
suffix.

Change-Id: I70ff1f96c49857a6c2448eebcaa36e206873df0b

3 years agoinitrd: apply a preen mode 2 about f2fs.fsck 34/262734/1 accepted/tizen/6.5/unified/20211028.114718 accepted/tizen/unified/20210819.224401 submit/tizen/20210819.031929 submit/tizen_6.5/20211028.162501 tizen_6.5.m2_release
Jaehoon Chung [Thu, 19 Aug 2021 02:14:02 +0000 (11:14 +0900)]
initrd: apply a preen mode 2 about f2fs.fsck

Apply a preen mode 2 about f2fs.fsck.
When f2fs file is created in lower kernel than v4.19, i_gc_failure is
initialized to 0x1. In Tizen Build System, user image is always set to
1 because of using old kernel.

[FIX] (fsck_chk_inode_blk:1071)  --> Regular: 0x31 reset i_gc_failures from 0x1 to 0x00

Preen mode 2 is for skipping this behavior about old kernel.
https://lore.kernel.org/patchwork/patch/1017743/

The first booting time will be reduced.

Change-Id: I23825d9ff1f49c6b3cf9db9513f53f3854fcdee0
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
3 years agoSupport container-aware virtual filesystems mount 05/260505/5 accepted/tizen/unified/20210707.070906 submit/tizen/20210706.102309
INSUN PYO [Mon, 28 Jun 2021 01:32:57 +0000 (10:32 +0900)]
Support container-aware virtual filesystems mount

Change-Id: Ifcbfb64445aaa850f9f936c6bfc9a021de9dc4ce
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
3 years agoSupport container-based Tizen guest OS 84/260284/3 accepted/tizen/unified/20210702.133337 submit/tizen/20210702.050357
Hyotaek Shim [Wed, 23 Jun 2021 06:45:00 +0000 (15:45 +0900)]
Support container-based Tizen guest OS

Change-Id: I704936b90a8b19c844851abbc9d17fd082402f6b
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
3 years agoinitrd: load kernel module #3 55/260555/1 accepted/tizen/unified/20210630.144038 submit/tizen/20210629.050716 submit/tizen/20210629.115102 submit/tizen/20210630.013220
INSUN PYO [Tue, 29 Jun 2021 03:27:29 +0000 (12:27 +0900)]
initrd: load kernel module #3

Modify to load kernel module in parallel.

Change-Id: I865ed1747186c738ac050e587c631262cbd6d6a7

3 years agoinitrd: load kernel module #2 69/260269/2 accepted/tizen/unified/20210624.131807 submit/tizen/20210623.224642
INSUN PYO [Wed, 23 Jun 2021 01:52:44 +0000 (10:52 +0900)]
initrd: load kernel module #2

Change-Id: Id87b8e551d3c278af58bd23b0343a9fd4f3f0213

3 years agoinitrd: fix typo error 32/260232/1 accepted/tizen/unified/20210622.125755 submit/tizen/20210622.081544
INSUN PYO [Tue, 22 Jun 2021 08:10:19 +0000 (17:10 +0900)]
initrd: fix typo error

initrd fails with error.
=================================================================================
[    2.756475] Starting init: /sbin/init exists but couldn't execute it (error -8)
sh-3.2#
=================================================================================

Change-Id: I261e53f9f9cd6cb0e701f839e9a809788acfc7e7

3 years agoinitrd: load kernel module 63/259563/23 submit/tizen/20210622.073805
INSUN PYO [Wed, 9 Jun 2021 23:32:18 +0000 (08:32 +0900)]
initrd: load kernel module

Change-Id: Ie73c7636ebaa28d7a7f4f8e66098c5d0455238ad

3 years agoinitrd: fix hal mountpoint in init wrapper environment 55/259855/4 submit/tizen/20210622.062058
INSUN PYO [Wed, 16 Jun 2021 03:13:11 +0000 (12:13 +0900)]
initrd: fix hal mountpoint in init wrapper environment

Change-Id: Id374e7987895723e6e16da3080757ce1bbc9d3d7

3 years agoUse the standard module directory 60/258960/3 submit/tizen/20210617.094416
Mateusz Majewski [Fri, 28 May 2021 08:29:18 +0000 (10:29 +0200)]
Use the standard module directory

This should be the same directory, but /lib/modules is a better-known
name.

Change-Id: I7bbee8bedfbe44384c0d968e694c9bf6800eb521

3 years agoinitrd: mount module partition to Read-Only 53/259853/1
INSUN PYO [Wed, 16 Jun 2021 02:55:46 +0000 (11:55 +0900)]
initrd: mount module partition to Read-Only

Change-Id: I93ea5b664a72586c74e6751bb0186202735990d5

3 years agoinitrd: improve stability for hal partitions 73/259573/1 accepted/tizen/unified/20210611.145112 submit/tizen/20210610.022051
INSUN PYO [Thu, 10 Jun 2021 01:12:59 +0000 (10:12 +0900)]
initrd: improve stability for hal partitions

If you don't do fsck after resizefs,
sometimes resizefs behaves abnormally.

Change-Id: I55b068a445d8acb47b64cf637aeb4ccff41acb02

3 years agoinitrd: add the mount function about hal partition 88/259488/3 accepted/tizen/unified/20210609.140305 submit/tizen/20210609.062333
Jaehoon Chung [Wed, 9 Jun 2021 02:23:06 +0000 (11:23 +0900)]
initrd: add the mount function about hal partition

Add the mount function about hal partition.
In future, the checking condition of hal/lib directory will be removed.
* exist /hal/lib/
  - included hal path in platform image
* Not exist /hal/lib/
  - Separated hal.img from platform image

Change-Id: I9f1aff8a1c2f2ca92c3465c41257e559d4afa716
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
3 years agodm-verity: fix exceptional cases of creating dm-verity metadata 23/259223/5 accepted/tizen/unified/20210604.120735 submit/tizen/20210603.041836
INSUN PYO [Wed, 2 Jun 2021 11:50:06 +0000 (20:50 +0900)]
dm-verity: fix exceptional cases of creating dm-verity metadata

Iot-headless uses btrfs filesystem for root partition.
tune2fs does not work with btrfs filesystem.

Change-Id: I43080e3b960e199c95fde2b3cbb7d175d28c1c9d

3 years agodm-verity: rework resizefs in verify boot 99/259199/4 accepted/tizen/unified/20210602.122401 submit/tizen/20210602.090101
INSUN PYO [Wed, 2 Jun 2021 04:53:21 +0000 (13:53 +0900)]
dm-verity: rework resizefs in verify boot

To remove filesystem-related code from verityctl script

Change-Id: Ib3ccca8ec9a4ef30bf58e839ff929dae720bdc24

3 years agodm-verity: do not check dm-verity in init-wrapper 97/259197/4
INSUN PYO [Wed, 2 Jun 2021 03:56:59 +0000 (12:56 +0900)]
dm-verity: do not check dm-verity in init-wrapper

The rootfs must not be mounted to apply the dm-verity.
(The limitation of dm-verity)

In the init-wrapper, rootfs is already mounted.
So in the init-wrapper, you must not check the dm-verity.

Change-Id: I979ced22111c0efabdec54726b370b6232fbd482

3 years agodm-verity: enable meta data signing 15/257715/13 accepted/tizen/unified/20210528.134811 submit/tizen/20210528.010751
INSUN PYO [Fri, 30 Apr 2021 03:29:02 +0000 (12:29 +0900)]
dm-verity: enable meta data signing

Ref: https://review.tizen.org/gerrit/#/c/platform/core/system/initrd/+/257715/11

Change-Id: I047dfc8f4fe1d29065693f7a2789e268a07841cf

3 years agoChange /dev/mapper/root to /dev/mapper/rootfs 97/258197/2
INSUN PYO [Wed, 12 May 2021 05:58:15 +0000 (14:58 +0900)]
Change /dev/mapper/root to /dev/mapper/rootfs

Change-Id: Ibe6ce32efe242d3ba23b5e804b236dbbf722023e

3 years agoUnify initrd script for ramdisk and init wrapper 93/256493/13 accepted/tizen/unified/20210430.052708 submit/tizen/20210429.105422
Hyotaek Shim [Mon, 5 Apr 2021 11:01:57 +0000 (20:01 +0900)]
Unify initrd script for ramdisk and init wrapper

Change-Id: Ic4fcd41e1774ce5303870b4a08c0aa8b5f6e6e5a
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
3 years agoAdd /etc/initrd-release file 40/257140/2 accepted/tizen/unified/20210421.101136 submit/tizen/20210421.041051
INSUN PYO [Tue, 20 Apr 2021 01:29:34 +0000 (10:29 +0900)]
Add /etc/initrd-release file

Systemd uses /etc/initrd-release file to check if it is running on ramdisk.

Change-Id: I8a891c6a7f59c4c9237eebe4970cc943c89bbd7a
Refs: https://www.freedesktop.org/software/systemd/man/bootup.html
Refs: https://www.freedesktop.org/wiki/Software/systemd/InitrdInterface/

3 years agoRefactor /sbin/init 96/256696/13
INSUN PYO [Fri, 9 Apr 2021 08:32:47 +0000 (17:32 +0900)]
Refactor /sbin/init

Change-Id: Ibf1987072ae160973070fcf37844c166e902667a

3 years agoAdd tool support for checking and resizing f2fs partition 21/254621/2 accepted/tizen/unified/20210310.144844 submit/tizen/20210310.051909
Dongwoo Lee [Fri, 5 Mar 2021 09:16:46 +0000 (18:16 +0900)]
Add tool support for checking and resizing f2fs partition

To provide f2fs partitions with checking filesystem and expanding at
boot, this adds f2fs tools and modifies init script to deal with the
partiton depending on its type of filesystem.

Change-Id: I6289be62d4d290831eec5a51d9feef434080676e
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
3 years agoChange "Requires(post)" to "Requires(posttrans)" 96/253796/5 accepted/tizen/unified/20210224.131655 submit/tizen/20210224.001604
INSUN PYO [Thu, 18 Feb 2021 05:58:11 +0000 (14:58 +0900)]
Change "Requires(post)" to "Requires(posttrans)"

gbs(0.25.15) seems to have a bug.

A gbs tool downloads and uses the AAA_package at build time.
 - Requires(pre):       AAA_package
 - Requires(post):      AAA_package

A gbs tool does not download the AAA_package at build time.
 - Requires:            AAA_package
 - Requires(preun):     AAA_package
 - Requires(postun):    AAA_package
 - Requires(posttrans): AAA_package

Change-Id: I19c681c9103c15f9b08f54c3f9b6bf8a26f76eea

3 years agoRevert: Adding to mount squashfs for gps tracker image. 23/250823/1 accepted/tizen/unified/20210105.125823 submit/tizen/20210105.050737
INSUN PYO [Tue, 5 Jan 2021 01:56:02 +0000 (10:56 +0900)]
Revert: Adding to mount squashfs for gps tracker image.

squashfs based usr partition is deprecated since 5.0.

Change-Id: Ie5367bf5f8215259a0ae385a6e047893016f67ee

3 years agoCreate /sysroot and /opt at the mic stage, not runtime 36/250536/1 accepted/tizen/unified/20201230.121745 submit/tizen/20201230.014042
insun.pyo [Tue, 29 Dec 2020 06:45:40 +0000 (15:45 +0900)]
Create /sysroot and /opt at the mic stage, not runtime

After applying squashfs,  "/" of ramdisk is read only.

Change-Id: I5453a2fff90623bec10d0980ee9a9eecbd8fd8df

3 years agodm-verity: Cleanup verityctl shell script 86/247286/5 accepted/tizen/unified/20201111.124727 submit/tizen/20201110.071658
INSUN PYO [Mon, 9 Nov 2020 11:23:03 +0000 (20:23 +0900)]
dm-verity: Cleanup verityctl shell script

Change-Id: I959263f7f2de384e1e17c1dfbb561c98cf9bf6d8

4 years agoInclude verityctl in ramdisk-recovery to remake hash table 35/246035/7 accepted/tizen/unified/20201109.123539 submit/tizen/20201104.032152 submit/tizen/20201104.064230
Kichan Kwon [Thu, 22 Oct 2020 10:49:12 +0000 (19:49 +0900)]
Include verityctl in ramdisk-recovery to remake hash table

Change-Id: I8d50fefad2b1892ea223e14bea7219eddc03becc
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoEnable making block device's hash table 34/246034/5
Kichan Kwon [Thu, 22 Oct 2020 10:42:54 +0000 (19:42 +0900)]
Enable making block device's hash table

Change-Id: I1a9aa283dd81a0f2922a256c5ab9c0b8c8d5ab6b
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoAdd ramdisk-flush.service to free /dev/ram0 45/242245/2 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.115530 accepted/tizen/6.0/unified/hotfix/20201103.003821 accepted/tizen/unified/20200828.121620 submit/tizen/20200826.073249 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 tizen_6.0.m2_release
INSUN PYO [Tue, 25 Aug 2020 07:10:40 +0000 (16:10 +0900)]
Add ramdisk-flush.service to free /dev/ram0

After booting is complete, the memory of /dev/ram0 used by initrd is still wasted.
Run "/sbin/blockdev --flushbufs /dev/ram0" to free this memory.

Caution: You can't run this command before "chroot . /sbin/init" in the initrd.
Because init is still running on /dev/ram0.

Change-Id: Ia751db9b3eb660de980d6a223fe5dc7bef511f87

4 years agoApply 1 ignore_zero_blocks optimization to dm-verity setup 76/241976/1 accepted/tizen/unified/20200824.134507 submit/tizen/20200821.075138
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>
4 years agoscripts: init.sh: Remove the btrfs balance command 21/240521/2 accepted/tizen/unified/20200812.144013 submit/tizen/20200811.023910
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>
4 years agoscripts: init.sh: change old directory of pivot_root 72/240172/2 accepted/tizen/unified/20200806.062536 submit/tizen/20200804.085126 submit/tizen/20200805.100826 submit/tizen/20200806.015616
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

4 years agoEnable dmverity 67/239967/2 accepted/tizen/unified/20200804.142351 submit/tizen/20200804.040003
INSUN PYO [Fri, 31 Jul 2020 05:48:00 +0000 (14:48 +0900)]
Enable dmverity

Change-Id: Ib83af50f2b1b7788f8aec6d51bb8c880a4b664ea

4 years agodm-verity: change dm-verity tool from veritysetup to dmsetup 91/239991/5 accepted/tizen/unified/20200804.142359 submit/tizen/20200804.010602
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

4 years agodm-verity: fix booting fail on non dm-verity target 41/239841/4 accepted/tizen/unified/20200731.145750 submit/tizen/20200730.105330
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

4 years agodm-verity: implement "verityctl format" and "verityctl disable" command 12/239712/7 accepted/tizen/unified/20200730.063318 submit/tizen/20200730.033924
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

4 years agodm-verity: add /usr/bin/verityctl and implement "verityctl format" command 46/239646/4 accepted/tizen/unified/20200729.031050 submit/tizen/20200728.112852
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

4 years agoAdd veritytool package for dm-verity 36/239336/1 accepted/tizen/unified/20200724.124048 submit/tizen/20200724.051635
INSUN PYO [Fri, 24 Jul 2020 04:59:03 +0000 (13:59 +0900)]
Add veritytool package for dm-verity

Change-Id: I3f699f58408d5b1c5fa167efdfe232c5d25193cb

4 years agopostscript: apply arch difference 45/236245/1 accepted/tizen/unified/20200618.130002 submit/tizen/20200618.034524
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>
4 years agopostscript: support multiple list files 44/236244/1
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>
4 years agoAdd PATH=/bin:/usr/bin:/sbin:/usr/sbin to init.sh 98/235698/1 accepted/tizen/unified/20200609.153451 submit/tizen/20200609.042709
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>
4 years agoscripts: init.sh: Change btrfs compression algorithm 90/223790/1 accepted/tizen/unified/20200204.125757 submit/tizen/20200204.042154
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>
4 years agoSupport the btrfs filesystem mount for the rootfs image 74/222374/1 accepted/tizen/unified/20200116.102958 submit/tizen/20200116.075025
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>
5 years agoFix resizefs: corrupted filesystem can not perform resizefs 77/201377/1 accepted/tizen/unified/20191112.125225 submit/tizen/20191111.074817
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

5 years agoFix race condition 72/201372/1
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

5 years agoPerform resizefs for /opt/usr 07/201107/3 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.022839 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090540 accepted/tizen/unified/20190312.113103 submit/tizen/20190311.123423 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 tizen_5.5.m2_release
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

5 years agoRename regarding fsck/resize2fs 39/199239/1 accepted/tizen/unified/20190208.061647 submit/tizen/20190207.112658
Hyotaek Shim [Thu, 7 Feb 2019 12:21:43 +0000 (21:21 +0900)]
Rename regarding fsck/resize2fs

Change-Id: I827455495952a4c34d6c23d5fcec8fd338e2d3c5

6 years agoCreate /dev, /proc, and /sys directories before mounting 57/189657/2 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.021511 accepted/tizen/unified/20180928.080557 submit/tizen/20180927.030248 submit/tizen_5.0/20181101.000004
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>
6 years agoPerform fsck on each booting 37/176337/1 accepted/tizen/unified/20180419.075955 submit/tizen/20180418.115925
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>
6 years agoBug fix: change the location of rootfs(/sysroot) read-only mount 53/169753/2 accepted/tizen/unified/20180209.064042 submit/tizen/20180209.022053
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>
6 years agoMount rootfs -o ro 68/164268/3 accepted/tizen/unified/20171219.072737 submit/tizen/20171219.030335
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>
7 years agoAdding to mount squashfs for gps tracker image. 75/146675/3 accepted/tizen/unified/20170830.161304 submit/tizen/20170830.081358
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>
7 years agoLicense: install license file (LICENSE.Apache-2.0) in the spec 18/129718/1
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

7 years agoMake caching file for imporoving performance. 08/123508/2 accepted/tizen/4.0/unified/20170816.012714 accepted/tizen/4.0/unified/20170829.020323 accepted/tizen/unified/20170406.173313 submit/tizen/20170406.045247 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100004 submit/tizen_4.0/20170828.110004 tizen_4.0.m1_release
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>
7 years agoAdd blkid.conf file to ramdisk 30/121830/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170403.190126 accepted/tizen/ivi/20170403.124647 accepted/tizen/mobile/20170403.124639 accepted/tizen/tv/20170403.124642 accepted/tizen/unified/20170403.124655 accepted/tizen/wearable/20170403.124645 submit/tizen/20170403.023333
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>
7 years agoinit: fix not to use found modules partition as rootfs 79/121779/2 accepted/tizen/common/20170329.172245 accepted/tizen/ivi/20170329.222710 accepted/tizen/mobile/20170329.222519 accepted/tizen/tv/20170329.222643 accepted/tizen/unified/20170329.222732 accepted/tizen/wearable/20170329.222706 submit/tizen/20170329.041352
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>
7 years agoMake initrd package 93/115293/3 accepted/tizen/common/20170222.124510 accepted/tizen/ivi/20170227.050708 accepted/tizen/mobile/20170222.094849 accepted/tizen/tv/20170222.094903 accepted/tizen/unified/20170309.033928 accepted/tizen/wearable/20170222.094921 submit/tizen/20170222.050315 submit/tizen_ivi/20170227.044807 submit/tizen_unified/20170308.100409
Silas Jeon [Tue, 31 Jan 2017 04:48:44 +0000 (13:48 +0900)]
Make initrd package

Change-Id: Ic7a2ce8856e0f8f0566183d2841e5a471fdec7ed

7 years agoInitial empty repository master
Tizen Infrastructure [Mon, 13 Feb 2017 05:02:48 +0000 (21:02 -0800)]
Initial empty repository