mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 21:56:42 +00:00
adding real blkid to initramfs
supporting single-boot ATV update process
This commit is contained in:
parent
73c2f6c8e9
commit
70df6f6d29
@ -36,5 +36,5 @@ PKG_IS_ADDON="no"
|
|||||||
PKG_AUTORECONF="no"
|
PKG_AUTORECONF="no"
|
||||||
|
|
||||||
if [ "$HFSTOOLS" = "yes" ]; then
|
if [ "$HFSTOOLS" = "yes" ]; then
|
||||||
PKG_DEPENDS="$PKG_DEPENDS diskdev_cmds-initramfs"
|
PKG_DEPENDS="$PKG_DEPENDS diskdev_cmds-initramfs util-linux-initramfs"
|
||||||
fi
|
fi
|
||||||
|
@ -115,8 +115,26 @@ REBOOT="0"
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hfsdiskprep() {
|
||||||
|
for DEV in `/bin/busybox ls /dev/sd*`; do
|
||||||
|
FS_TYPE=$(/sbin/blkid -o value -s TYPE $DEV)
|
||||||
|
if [ "$FS_TYPE" = "hfs" -o "$FS_TYPE" = "hfsplus" ]; then
|
||||||
|
/sbin/fsck_hfs -r -y $DEV > /dev/null 2>&1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
# deal with hfs partitions
|
||||||
|
if [ -x /sbin/fsck_hfs ]; then
|
||||||
|
hfsdiskprep
|
||||||
|
fi
|
||||||
|
|
||||||
mount_part "$boot" "/flash" "ro,noatime"
|
mount_part "$boot" "/flash" "ro,noatime"
|
||||||
|
|
||||||
|
if [ -f "/flash/atv_single_boot" ]; then
|
||||||
|
IMAGE_KERNEL="MACH_KERNEL"
|
||||||
|
fi
|
||||||
|
|
||||||
show_splash
|
show_splash
|
||||||
|
|
||||||
if [ -n "$disk" ]; then
|
if [ -n "$disk" ]; then
|
||||||
|
28
packages/initramfs/sysutils/util-linux-initramfs/install
Executable file
28
packages/initramfs/sysutils/util-linux-initramfs/install
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
|
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||||
|
#
|
||||||
|
# This Program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
#
|
||||||
|
# This Program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||||
|
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
. config/options $1
|
||||||
|
|
||||||
|
UTIL_LINUX_DIR="$BUILD/util-linux-*"
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/sbin
|
||||||
|
cp $UTIL_LINUX_DIR/misc-utils/blkid $INSTALL/sbin
|
36
packages/initramfs/sysutils/util-linux-initramfs/meta
Normal file
36
packages/initramfs/sysutils/util-linux-initramfs/meta
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
################################################################################
|
||||||
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
|
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||||
|
#
|
||||||
|
# This Program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
#
|
||||||
|
# This Program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||||
|
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
PKG_NAME="util-linux-initramfs"
|
||||||
|
PKG_VERSION=""
|
||||||
|
PKG_REV="1"
|
||||||
|
PKG_ARCH="any"
|
||||||
|
PKG_LICENSE="APSL"
|
||||||
|
PKG_SITE="http://userweb.kernel.org/~kzak/util-linux-ng/"
|
||||||
|
PKG_URL=""
|
||||||
|
PKG_DEPENDS=""
|
||||||
|
PKG_BUILD_DEPENDS="toolchain util-linux"
|
||||||
|
PKG_PRIORITY="optional"
|
||||||
|
PKG_SECTION="initramfs/system"
|
||||||
|
PKG_SHORTDESC="util-linux: Miscellaneous system utilities for Linux"
|
||||||
|
PKG_LONGDESC="The util-linux package contains a large variety of low-level system utilities that are necessary for a Linux system to function. Among many features, Util-linux contains the fdisk configuration tool and the login program."
|
||||||
|
PKG_IS_ADDON="no"
|
||||||
|
|
||||||
|
PKG_AUTORECONF="no"
|
Loading…
x
Reference in New Issue
Block a user