@@ -42,16 +42,16 @@ function _main ()
42
42
local PATH_TO_THE_LOCAL_INSTALL_CONF=" ${PATH_TO_THIS_SCRIPT} /install.conf"
43
43
local PATH_TO_THE_DIST_INSTALL_CONF=" ${PATH_TO_THIS_SCRIPT} /install.dist.conf"
44
44
45
- # bo: sourcing install configuration files
45
+ echo " :: bo sourcing configuration files "
46
46
if [[ -f " ${PATH_TO_THE_DIST_INSTALL_CONF} " ]];
47
47
then
48
- echo " :: Sourcing >>install.dist.conf<<."
48
+ echo " Sourcing >>install.dist.conf<<."
49
49
. " ${PATH_TO_THE_DIST_INSTALL_CONF} "
50
50
fi
51
51
52
52
if [[ -f " ${PATH_TO_THE_LOCAL_INSTALL_CONF} " ]];
53
53
then
54
- echo " :: Sourcing >>install.conf<<."
54
+ echo " Sourcing >>install.conf<<."
55
55
. " ${PATH_TO_THE_LOCAL_INSTALL_CONF} "
56
56
fi
57
57
# bo: sourcing install configuration files
@@ -64,7 +64,9 @@ function _main ()
64
64
65
65
exit 1
66
66
fi
67
+ echo " :: eo sourcing configuration files "
67
68
69
+ echo " :: bo installing base packages"
68
70
# Root dataset
69
71
root_dataset=$( cat /tmp/root_dataset)
70
72
@@ -93,7 +95,9 @@ function _main ()
93
95
vim \
94
96
git \
95
97
ansible
98
+ echo " :: eo installing base packages"
96
99
100
+ echo " :: bo creating etc files"
97
101
# Generate fstab excluding ZFS entries
98
102
print " :: Generate fstab excluding ZFS entries"
99
103
genfstab -U /mnt | grep -v " ${zpoolname} " | tr -s ' \n' | sed ' s/\/mnt//' > /mnt/etc/fstab
@@ -113,10 +117,12 @@ EOF
113
117
# Prepare locales
114
118
sed -i ' s/#\(' " ${locale} " ' .UTF-8\)/\1/' /mnt/etc/locale.gen
115
119
echo ' LANG="' " ${locale} " ' .UTF-8"' > /mnt/etc/locale.conf
120
+ echo " :: eo creating etc files"
116
121
122
+ echo " :: bo initramfs"
117
123
# Prepare initramfs
118
124
print " :: Prepare initramfs"
119
- if lspci | grep ' VGA ' | grep -q -i intel
125
+ if lspci | grep -i ' VGA' | grep -q -i intel
120
126
then
121
127
modules=" i915 intel_agp"
122
128
else
@@ -146,7 +152,9 @@ PRESETS=('default')
146
152
default_image="/boot/initramfs-linux.img"
147
153
EOF
148
154
fi
155
+ echo " :: eo initramfs"
149
156
157
+ echo " :: bo copy zfs files"
150
158
print " :: Copy ZFS files"
151
159
cp /etc/hostid /mnt/etc/hostid
152
160
cp /etc/zfs/zpool.cache /mnt/etc/zfs/zpool.cache
@@ -163,13 +171,13 @@ EOF
163
171
rm -fr /mnt/home/$user
164
172
fi
165
173
fi
174
+ echo " :: eo copy zfs files"
166
175
167
- print " :: Configure timezone "
176
+ echo " :: bo timedate configuration "
168
177
timedatectl set-ntp true
178
+ echo " :: eo timedate configuration"
169
179
170
- # Chroot and configure
171
- print " :: Chroot and configure system"
172
-
180
+ echo " :: bo chroot configuration"
173
181
arch-chroot /mnt /bin/bash -xe << EOF
174
182
175
183
### Reinit keyring
234
242
chown -R ${user} :${user} /home/${user}
235
243
236
244
EOF
245
+ echo " :: eo chroot configuration"
237
246
238
247
# Set root passwd
239
248
print " :: Set root password"
0 commit comments