Bob Mottram 8 年前
父节点
当前提交
af48fdce9d
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5
    5
      src/freedombone-image-hardware-setup

+ 5
- 5
src/freedombone-image-hardware-setup 查看文件

60
     dtb="$1"
60
     dtb="$1"
61
 
61
 
62
     # Setup boot.cmd
62
     # Setup boot.cmd
63
-    if grep -q btrfs /etc/fstab ; then
63
+    fstype=ext4
64
+    if grep -q btrfs /etc/fstab; then
64
         fstype=btrfs
65
         fstype=btrfs
65
-    else
66
-        fstype=ext4
66
+    fi
67
+
67
     if [ -n "$command_line" ] ; then
68
     if [ -n "$command_line" ] ; then
68
         echo flash-kernel flash-kernel/linux_cmdline string "$command_line" | debconf-set-selections
69
         echo flash-kernel flash-kernel/linux_cmdline string "$command_line" | debconf-set-selections
69
     fi
70
     fi
119
     bbb_version=$1
120
     bbb_version=$1
120
 
121
 
121
     # Setup uEnv.txt
122
     # Setup uEnv.txt
123
+    fstype=ext4
122
     if grep -q btrfs /etc/fstab ; then
124
     if grep -q btrfs /etc/fstab ; then
123
         fstype=btrfs
125
         fstype=btrfs
124
-    else
125
-        fstype=ext4
126
     fi
126
     fi
127
     if [ ! $bbb_version ]; then
127
     if [ ! $bbb_version ]; then
128
         kernelVersion=$(ls /usr/lib/*/am335x-boneblack.dtb | head -1 | cut -d/ -f4)
128
         kernelVersion=$(ls /usr/lib/*/am335x-boneblack.dtb | head -1 | cut -d/ -f4)