main/postmarketos-mkinitfs: stop forcing full fsck on every boot (!723)
At the moment, a full file system check is forced even if the file system is marked clean (i.e. it was properly unmounted the last time it was used). On large file systems with slow I/O (e.g. SD cards), this can take a significant amount of time. Removing the -f option of e2fsck allows skipping the full file system check if it is marked clean, speeding up the boot time.
This commit is contained in:
parent
160c0d9cfb
commit
803b8dcec9
2 changed files with 3 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
pkgname=postmarketos-mkinitfs
|
||||
pkgver=0.7.20
|
||||
pkgver=0.7.21
|
||||
pkgrel=0
|
||||
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
||||
url="https://postmarketos.org"
|
||||
|
@ -23,7 +23,6 @@ package() {
|
|||
"$pkgdir/sbin/mkinitfs"
|
||||
mkdir -p "$pkgdir/etc/postmarketos-mkinitfs/hooks/"
|
||||
}
|
||||
|
||||
sha512sums="8be7f29394f8cd4e1c4b93f018f6314350f7e37e20d242c97284c1b112a106f882318a101bc0c70b391590b969023901580c677ee9f869850e90e69171a44e80 init.sh.in
|
||||
4131608b597cf750d0f3931623088d0e11896fb3dd99c3c5699a3ff995d932d72b4c80d4a29edc34007b9fc5b17d41492bd21dc532199dfc7054d6a4c8349043 init_functions.sh
|
||||
3c20fdfd4b06a975a0ebcf8f335a56028e0f58109078f0312f7b62eec4e0874e53aef7e538d6e6770f7bae6441166770795c32ee833569eda856239aeb44022b init_functions.sh
|
||||
3f918f8b5967b73e507c2ddf36dccc24fee98298f05ca23e22605400de95137f8877e09769616e7db388557c645fb45c03e1e6b5bab815ec9f853c318f0431f1 mkinitfs.sh"
|
||||
|
|
|
@ -203,7 +203,7 @@ resize_root_filesystem() {
|
|||
partition="$(find_root_partition)"
|
||||
touch /etc/mtab # see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673323
|
||||
echo "Check/repair root filesystem ($partition)"
|
||||
e2fsck -f -y "$partition"
|
||||
e2fsck -y "$partition"
|
||||
echo "Resize root filesystem ($partition)"
|
||||
resize2fs -f "$partition"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue