initramfs tools on non-uboot systems
This commit is contained in:
parent
6983eda8aa
commit
c555943c8a
|
@ -1045,7 +1045,7 @@ function image_setup_utils {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $ARCHITECTURE == 'qemu'* || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'i386' ]]; then
|
if [[ $ARCHITECTURE == 'qemu'* || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'i386' ]]; then
|
||||||
chroot "$rootdir" apt-get -yq install grub2 lvm2
|
chroot "$rootdir" apt-get -yq install grub2 lvm2 initramfs-tools
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chroot "$rootdir" apt-get -yq install locales locales-all debconf
|
chroot "$rootdir" apt-get -yq install locales locales-all debconf
|
||||||
|
@ -1356,7 +1356,7 @@ chroot "$rootdir" apt-get install -y libnss-mdns libnss-myhostname libnss-gw-nam
|
||||||
chroot "$rootdir" apt-get install -y locales locales-all debconf wireless-tools wpasupplicant usbutils
|
chroot "$rootdir" apt-get install -y locales locales-all debconf wireless-tools wpasupplicant usbutils
|
||||||
if [[ $ARCHITECTURE == 'qemu'* || $ARCHITECTURE == 'i386' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' ]]; then
|
if [[ $ARCHITECTURE == 'qemu'* || $ARCHITECTURE == 'i386' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' ]]; then
|
||||||
chroot "$rootdir" apt-get install -y cryptsetup zsh pinentry-curses iotop bc
|
chroot "$rootdir" apt-get install -y cryptsetup zsh pinentry-curses iotop bc
|
||||||
chroot "$rootdir" apt-get install -y grub2 hostapd lvm2
|
chroot "$rootdir" apt-get install -y grub2 hostapd lvm2 initramfs-tools
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sed -i "s|#host-name=.*|host-name=${LOCAL_NAME}|g" $rootdir/etc/avahi/avahi-daemon.conf
|
sed -i "s|#host-name=.*|host-name=${LOCAL_NAME}|g" $rootdir/etc/avahi/avahi-daemon.conf
|
||||||
|
|
|
@ -235,7 +235,7 @@ function initial_setup {
|
||||||
apt-get -yq install cpulimit screen
|
apt-get -yq install cpulimit screen
|
||||||
|
|
||||||
if [[ $ARCHITECTURE == 'qemu'* || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'i386' ]]; then
|
if [[ $ARCHITECTURE == 'qemu'* || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'i386' ]]; then
|
||||||
apt-get -yq install grub2 lvm2
|
apt-get -yq install grub2 lvm2 initramfs-tools
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d $INSTALL_DIR ]; then
|
if [ ! -d $INSTALL_DIR ]; then
|
||||||
|
|
Loading…
Reference in New Issue