@@ -7,6 +7,14 | |||
|
7 | 7 | |
|
8 | 8 | # Install and setup timezone |
|
9 | 9 | echo "${TIMEZONE}" > "${ETC_DIR}/timezone" |
|
10 | if [ -f "${ETC_DIR}/localtime" ]; then | |
|
11 | # 1. If 11-apt.sh upgrades the package 'tzdata', '/etc/localtime' was created | |
|
12 | # because 'dpkg-reconfigure -f noninteractive tzdata' was executed by apt-get. | |
|
13 | # 2. If '/etc/localtime' exists, our execution of 'dpkg-reconfigure -f noninteractive tzdata' | |
|
14 | # will ignore the our timezone set in '/etc/timezone'. | |
|
15 | # 3. Removing /etc/localtime will solve this. | |
|
16 | rm -f "${ETC_DIR}/localtime" | |
|
17 | fi | |
|
10 | 18 | chroot_exec dpkg-reconfigure -f noninteractive tzdata |
|
11 | 19 | |
|
12 | 20 | # Install and setup default locale and keyboard configuration |
@@ -33,8 +33,10 if [ "$ENABLE_USBBOOT" = true ] ; then | |||
|
33 | 33 | sed -i "s/mmcblk0p2/sda2/" "${ETC_DIR}/fstab" |
|
34 | 34 | |
|
35 | 35 | # Add usb/sda2 disk to crypttab |
|
36 | if [ "$ENABLE_CRYPTFS" = true ] ; then | |
|
36 | 37 |
|
|
37 | 38 | fi |
|
39 | fi | |
|
38 | 40 | |
|
39 | 41 | # Generate initramfs file |
|
40 | 42 | if [ "$ENABLE_INITRAMFS" = true ] ; then |
@@ -55,9 +57,6 if [ "$ENABLE_INITRAMFS" = true ] ; then | |||
|
55 | 57 | |
|
56 | 58 |
|
|
57 | 59 |
|
|
58 | ||
|
59 | # Regenerate initramfs | |
|
60 | chroot_exec mkinitramfs -o "/boot/firmware/initramfs-${KERNEL_VERSION}" "${KERNEL_VERSION}" | |
|
61 | 60 | fi |
|
62 | 61 | |
|
63 | 62 | if [ "$CRYPTFS_DROPBEAR" = true ]; then |
@@ -83,6 +82,7 if [ "$ENABLE_INITRAMFS" = true ] ; then | |||
|
83 | 82 | |
|
84 | 83 |
|
|
85 | 84 |
|
|
85 | fi | |
|
86 | 86 | |
|
87 | 87 |
|
|
88 | 88 |
|
@@ -92,7 +92,6 if [ "$ENABLE_INITRAMFS" = true ] ; then | |||
|
92 | 92 | |
|
93 | 93 |
|
|
94 | 94 |
|
|
95 | fi | |
|
96 | 95 | else |
|
97 | 96 |
|
|
98 | 97 |
|
@@ -104,13 +103,11 if [ "$ENABLE_INITRAMFS" = true ] ; then | |||
|
104 | 103 |
|
|
105 | 104 |
|
|
106 | 105 | |
|
107 | # Generate initramfs with encrypted root partition support | |
|
108 | chroot_exec mkinitramfs -o "/boot/firmware/initramfs-${KERNEL_VERSION}" "${KERNEL_VERSION}" | |
|
109 | ||
|
110 | 106 |
|
|
111 | 107 |
|
|
112 | 108 |
|
|
109 | ||
|
110 | fi | |
|
113 | 111 |
|
|
114 | 112 |
|
|
115 | 113 |
|
|
116 | fi |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant