@@ -8,11 +8,6 | |||||
8 | # Install and setup fstab |
|
8 | # Install and setup fstab | |
9 | install_readonly files/mount/fstab "${ETC_DIR}/fstab" |
|
9 | install_readonly files/mount/fstab "${ETC_DIR}/fstab" | |
10 |
|
10 | |||
11 | if [ "$ENABLE_USBBOOT" = true ] ; then |
|
|||
12 | sed -i "s/mmcblk0p1/sda1/" "${ETC_DIR}/fstab" |
|
|||
13 | sed -i "s/mmcblk0p2/sda2/" "${ETC_DIR}/fstab" |
|
|||
14 | fi |
|
|||
15 |
|
||||
16 | # Add usb/sda disk root partition to fstab |
|
11 | # Add usb/sda disk root partition to fstab | |
17 | if [ "$ENABLE_SPLITFS" = true ] && [ "$ENABLE_CRYPTFS" = false ] ; then |
|
12 | if [ "$ENABLE_SPLITFS" = true ] && [ "$ENABLE_CRYPTFS" = false ] ; then | |
18 | sed -i "s/mmcblk0p2/sda1/" "${ETC_DIR}/fstab" |
|
13 | sed -i "s/mmcblk0p2/sda1/" "${ETC_DIR}/fstab" | |
@@ -38,6 +33,11 if [ "$ENABLE_CRYPTFS" = true ] ; then | |||||
38 | fi |
|
33 | fi | |
39 | fi |
|
34 | fi | |
40 |
|
35 | |||
|
36 | if [ "$ENABLE_USBBOOT" = true ] ; then | |||
|
37 | sed -i "s/mmcblk0p1/sda1/" "${ETC_DIR}/fstab" | |||
|
38 | sed -i "s/mmcblk0p2/sda2/" "${ETC_DIR}/fstab" | |||
|
39 | fi | |||
|
40 | ||||
41 | # Generate initramfs file |
|
41 | # Generate initramfs file | |
42 | if [ "$ENABLE_INITRAMFS" = true ] ; then |
|
42 | if [ "$ENABLE_INITRAMFS" = true ] ; then | |
43 | if [ "$ENABLE_CRYPTFS" = true ] ; then |
|
43 | if [ "$ENABLE_CRYPTFS" = true ] ; then |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant