diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2015-05-06 20:51:11 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2015-05-06 20:51:11 +0300 |
commit | 91cbefa95502a1236e1c52d0248c97e7ea803fb4 (patch) | |
tree | 633ad1a5aebdd9eb325471ed530ab01c88f485d6 | |
parent | 6b1022ccd35b70720bfc3394a8ff1401e4e5ea85 (diff) |
linaro-hwpack-install: create dummy fstab
fsck initramfs-tools hook is reading fstab entries
in order to copy e2fsck into initramfs image.
Change-Id: If47a87a7c5333511bb4f29fa0642b505f78087d0
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
-rwxr-xr-x | linaro-hwpack-install | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linaro-hwpack-install b/linaro-hwpack-install index c1fb105..e956a3e 100755 --- a/linaro-hwpack-install +++ b/linaro-hwpack-install @@ -207,6 +207,11 @@ echo "Warning: Fake initctl called, doing nothing" EOF chmod 755 /sbin/initctl fi + + # Create dummy fstab. fsck initramfs-tools hook is reading fstab entries + # in order to copy e2fsck into initramfs image + [ -f /etc/fstab ] && mv -f /etc/fstab /etc/fstab.REAL + echo "UUID=00000000-0000-0000-0000-000000000000 / ext4 defaults 0 1" > /etc/fstab } install_deb_packages() { @@ -300,6 +305,8 @@ cleanup() { if [ -x /sbin/initctl.REAL ]; then mv -f /sbin/initctl.REAL /sbin/initctl fi + rm -f /etc/fstab + [ -f /etc/fstab.REAL ] && mv -f /etc/fstab.REAL /etc/fstab # Do two updates. The first doesn't try to download package lists: # * First update doesn't access net # - not allowed to fail. Image file + hwpack should contain all packages |