diff --git a/banana-pi.sh b/banana-pi.sh index 8805291..cf3a9e1 100755 --- a/banana-pi.sh +++ b/banana-pi.sh @@ -221,7 +221,7 @@ apt-get --yes --download-only install kali-linux-default # We replace the u-boot menu defaults here so we can make sure the build system doesn't poison it. # We use _EOF_ so that the third-stage script doesn't end prematurely. cat << '_EOF_' > /etc/default/u-boot -U_BOOT_PARAMETERS="console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait panic=10 rw rootfstype=ext4 net.ifnames=0" +U_BOOT_PARAMETERS="console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait panic=10 rw rootfstype=ext3 net.ifnames=0" _EOF_ rm -f /usr/sbin/policy-rc.d @@ -281,12 +281,12 @@ sed -i -e 's/^#PermitRootLogin.*/PermitRootLogin yes/' "${basedir}"/kali-${archi # Build system will insert it's root filesystem into the extlinux.conf file so # we sed it out, this only affects build time, not upgrading the kernel on the # device itself. -sed -i -e 's/append.*/append console=ttyS0,115200 console=tty1 root=\/dev\/mmcblk0p1 rootwait panic=10 rw rootfstype=ext4 net.ifnames=0/g' "${basedir}"/kali-${architecture}/boot/extlinux/extlinux.conf +sed -i -e 's/append.*/append console=ttyS0,115200 console=tty1 root=\/dev\/mmcblk0p1 rootwait panic=10 rw rootfstype=ext3 net.ifnames=0/g' "${basedir}"/kali-${architecture}/boot/extlinux/extlinux.conf # Create the disk and partition it dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos -parted ${imagename}.img --script -- mkpart primary ext4 2048s 100% +parted ${imagename}.img --script -- mkpart primary ext3 2048s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -296,7 +296,7 @@ device="/dev/mapper/${device}" rootp=${device}p1 # Create file systems -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/banana-pro.sh b/banana-pro.sh index 0d91c4c..b3a38a0 100755 --- a/banana-pro.sh +++ b/banana-pro.sh @@ -223,7 +223,7 @@ sed -i 's/^TimeoutStartSec=5min/TimeoutStartSec=25/g' "/usr/lib/systemd/system/n # We replace the u-boot menu defaults here so we can make sure the build system doesn't poison it. # We use _EOF_ so that the third-stage script doesn't end prematurely. cat << '_EOF_' > /etc/default/u-boot -U_BOOT_PARAMETERS="console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait panic=10 rw rootfstype=ext4 net.ifnames=0" +U_BOOT_PARAMETERS="console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait panic=10 rw rootfstype=ext3 net.ifnames=0" _EOF_ rm -f /usr/sbin/policy-rc.d @@ -279,12 +279,12 @@ sed -i -e 's/^#PermitRootLogin.*/PermitRootLogin yes/' "${basedir}"/kali-${archi # Build system will insert it's root filesystem into the extlinux.conf file so # we sed it out, this only affects build time, not upgrading the kernel on the # device itself. -sed -i -e 's/append.*/append console=ttyS0,115200 console=tty1 root=\/dev\/mmcblk0p1 rootwait panic=10 rw rootfstype=ext4 net.ifnames=0/g' "${basedir}"/kali-${architecture}/boot/extlinux/extlinux.conf +sed -i -e 's/append.*/append console=ttyS0,115200 console=tty1 root=\/dev\/mmcblk0p1 rootwait panic=10 rw rootfstype=ext3 net.ifnames=0/g' "${basedir}"/kali-${architecture}/boot/extlinux/extlinux.conf # Create the disk and partition it dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos -parted ${imagename}.img --script -- mkpart primary ext4 2048s 100% +parted ${imagename}.img --script -- mkpart primary ext3 2048s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -294,7 +294,7 @@ device="/dev/mapper/${device}" rootp=${device}p1 # Create file system -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/bbb.sh b/bbb.sh index bb64f21..32ea5b1 100755 --- a/bbb.sh +++ b/bbb.sh @@ -316,7 +316,7 @@ loadfdt=load mmc \${mmcdev}:\${mmcpart} \${fdtaddr} /dtbs/\${fdtfile} console=ttyO0,115200n8 mmcroot=/dev/mmcblk0p2 rw net.ifnames=0 -mmcrootfstype=ext4 rootwait fixrtc +mmcrootfstype=ext3 rootwait fixrtc ##To disable HDMI/eMMC... #optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G @@ -398,7 +398,7 @@ echo "Creating image file for ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 2048s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -410,7 +410,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat -F 16 ${bootp} -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/chromebook-arm-exynos.sh b/chromebook-arm-exynos.sh index e382f40..540efce 100755 --- a/chromebook-arm-exynos.sh +++ b/chromebook-arm-exynos.sh @@ -488,7 +488,7 @@ cd "${basedir}"/kali-${architecture}/usr/src/kernel/arch/arm/boot mkimage -D "-I dts -O dtb -p 2048" -f kernel-exynos.its exynos-kernel # microSD Card -echo 'noinitrd console=tty1 quiet root=PARTUUID=%U/PARTNROFF=1 rootwait rw lsm.module_locking=0 net.ifnames=0 rootfstype=ext4' > cmdline +echo 'noinitrd console=tty1 quiet root=PARTUUID=%U/PARTNROFF=1 rootwait rw lsm.module_locking=0 net.ifnames=0 rootfstype=ext3' > cmdline # Pulled from ChromeOS, this is exactly what they do because there's no # bootloader in the kernel partition on ARM. @@ -628,7 +628,7 @@ device="/dev/mapper/${device}" bootp=${device}p1 rootp=${device}p2 -mkfs.ext4 -O ^flex_bg -O ^metadata_csum -L rootfs ${rootp} +mkfs.ext3 -O ^flex_bg -O ^metadata_csum -L rootfs ${rootp} mkdir -p "${basedir}"/root mount ${rootp} "${basedir}"/root diff --git a/chromebook-arm-nyan.sh b/chromebook-arm-nyan.sh index 282597b..8beb8b1 100755 --- a/chromebook-arm-nyan.sh +++ b/chromebook-arm-nyan.sh @@ -419,7 +419,7 @@ cd "${basedir}"/kali-${architecture}/usr/src/kernel/arch/arm/boot mkimage -f kernel-nyan.its nyan-big-kernel # BEHOLD THE POWER OF PARTUUID/PARTNROFF -echo "noinitrd console=tty1 quiet root=PARTUUID=%U/PARTNROFF=1 rootwait rw lsm.module_locking=0 net.ifnames=0 rootfstype=ext4" > cmdline +echo "noinitrd console=tty1 quiet root=PARTUUID=%U/PARTNROFF=1 rootwait rw lsm.module_locking=0 net.ifnames=0 rootfstype=ext3" > cmdline # Pulled from ChromeOS, this is exactly what they do because there's no # # bootloader in the kernel partition on ARM. @@ -529,7 +529,7 @@ device="/dev/mapper/${device}" bootp=${device}p1 rootp=${device}p2 -mkfs.ext4 -O ^flex_bg -O ^metadata_csum -L rootfs ${rootp} +mkfs.ext3 -O ^flex_bg -O ^metadata_csum -L rootfs ${rootp} mkdir -p "${basedir}"/root mount ${rootp} "${basedir}"/root diff --git a/chromebook-arm-veyron.sh b/chromebook-arm-veyron.sh index f7a4534..b764748 100755 --- a/chromebook-arm-veyron.sh +++ b/chromebook-arm-veyron.sh @@ -401,7 +401,7 @@ cd "${basedir}"/kali-${architecture}/usr/src/kernel/arch/arm/boot mkimage -D "-I dts -O dtb -p 2048" -f kernel-veyron.its veyron-kernel # BEHOLD THE MAGIC OF PARTUUID/PARTNROFF -echo 'noinitrd console=tty1 quiet root=PARTUUID=%U/PARTNROFF=1 rootwait rw lsm.module_locking=0 net.ifnames=0 rootfstype=ext4' > cmdline +echo 'noinitrd console=tty1 quiet root=PARTUUID=%U/PARTNROFF=1 rootwait rw lsm.module_locking=0 net.ifnames=0 rootfstype=ext3' > cmdline # Pulled from ChromeOS, this is exactly what they do because there's no # bootloader in the kernel partition on ARM. @@ -2287,7 +2287,7 @@ device="/dev/mapper/${device}" bootp=${device}p1 rootp=${device}p2 -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum -L rootfs ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum -L rootfs ${rootp} mkdir -p "${basedir}"/root mount ${rootp} "${basedir}"/root diff --git a/cubieboard2.sh b/cubieboard2.sh index a4fa201..a682674 100755 --- a/cubieboard2.sh +++ b/cubieboard2.sh @@ -294,7 +294,7 @@ cd "${basedir}" # Create boot.txt file cat << EOF > "${basedir}"/kali-${architecture}/boot/boot.cmd -setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 ${extra} rw rootfstype=ext4 net.ifnames=0 +setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 ${extra} rw rootfstype=ext3 net.ifnames=0 fatload mmc 0 0x43000000 script.bin fatload mmc 0 0x48000000 uImage bootm 0x48000000 @@ -312,7 +312,7 @@ sed -i -e 's/^#PermitRootLogin.*/PermitRootLogin yes/' "${basedir}"/kali-${archi dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 2048s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -324,7 +324,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/cubietruck.sh b/cubietruck.sh index 793505b..fc89fe4 100755 --- a/cubietruck.sh +++ b/cubietruck.sh @@ -295,7 +295,7 @@ cd "${basedir}" # Create boot.txt file cat << EOF > "${basedir}"/kali-${architecture}/boot/boot.cmd setenv bootm_boot_mode sec -setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 \${extra} rw rootfstype=ext4 net.ifnames=0 +setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 \${extra} rw rootfstype=ext3 net.ifnames=0 fatload mmc 0 0x43000000 script.bin fatload mmc 0 0x48000000 uImage bootm 0x48000000 @@ -313,7 +313,7 @@ sed -i -e 's/^#PermitRootLogin.*/PermitRootLogin yes/' "${basedir}"/kali-${archi dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 2048s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -325,7 +325,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/cubox-i.sh b/cubox-i.sh index 4a887f9..1fbc654 100755 --- a/cubox-i.sh +++ b/cubox-i.sh @@ -218,7 +218,7 @@ apt-get --yes --download-only install kali-linux-default # We replace the u-boot menu defaults here so we can make sure the build system doesn't poison it. # We use _EOF_ so that the third-stage script doesn't end prematurely. cat << '_EOF_' > /etc/default/u-boot -U_BOOT_PARAMETERS="console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait panic=10 rw rootfstype=ext4 net.ifnames=0" +U_BOOT_PARAMETERS="console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait panic=10 rw rootfstype=ext3 net.ifnames=0" _EOF_ rm -f /usr/sbin/policy-rc.d @@ -279,12 +279,12 @@ chmod 755 "${basedir}"/kali-${architecture}/etc/init.d/zram sed -i -e 's/^#PermitRootLogin.*/PermitRootLogin yes/' "${basedir}"/kali-${architecture}/etc/ssh/sshd_config # Ensure we don't have root=/dev/sda3 in the extlinux.conf which comes from running u-boot-menu in a cross chroot. -sed -i -e 's/append.*/append root=\/dev\/mmcblk1p1 rootfstype=ext4 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 console=ttymxc0,115200n8 console=tty1 consoleblank=0 rw rootwait/g' "${basedir}"/kali-${architecture}/boot/extlinux/extlinux.conf +sed -i -e 's/append.*/append root=\/dev\/mmcblk1p1 rootfstype=ext3 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 console=ttymxc0,115200n8 console=tty1 consoleblank=0 rw rootwait/g' "${basedir}"/kali-${architecture}/boot/extlinux/extlinux.conf echo "Creating image file for ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos -parted ${imagename}.img --script -- mkpart primary ext4 2048s 100% +parted ${imagename}.img --script -- mkpart primary ext3 2048s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -294,7 +294,7 @@ device="/dev/mapper/${device}" rootp=${device}p1 # Create file systems -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/cubox.sh b/cubox.sh index 4d3d808..ba2510b 100755 --- a/cubox.sh +++ b/cubox.sh @@ -298,21 +298,21 @@ setenv unit_no 0 setenv root_device ? if itest.s \${device_name} -eq usb; then - itest.s \$root_device -eq ? && ext4ls usb 0:1 /dev && setenv root_device /dev/sda1 && setenv unit_no 0 - itest.s \$root_device -eq ? && ext4ls usb 1:1 /dev && setenv root_device /dev/sda1 && setenv unit_no 1 + itest.s \$root_device -eq ? && ext3ls usb 0:1 /dev && setenv root_device /dev/sda1 && setenv unit_no 0 + itest.s \$root_device -eq ? && ext3ls usb 1:1 /dev && setenv root_device /dev/sda1 && setenv unit_no 1 fi if itest.s \${device_name} -eq mmc; then - itest.s \$root_device -eq ? && ext4ls mmc 0:2 /dev && setenv root_device /dev/mmcblk0p2 - itest.s \$root_device -eq ? && ext4ls mmc 0:1 /dev && setenv root_device /dev/mmcblk0p1 + itest.s \$root_device -eq ? && ext3ls mmc 0:2 /dev && setenv root_device /dev/mmcblk0p2 + itest.s \$root_device -eq ? && ext3ls mmc 0:1 /dev && setenv root_device /dev/mmcblk0p1 fi if itest.s \${device_name} -eq ide; then - itest.s \$root_device -eq ? && ext4ls ide 0:1 /dev && setenv root_device /dev/sda1 + itest.s \$root_device -eq ? && ext3ls ide 0:1 /dev && setenv root_device /dev/sda1 fi if itest.s \$root_device -ne ?; then - setenv bootargs "console=ttyS0,115200n8 vmalloc=448M video=dovefb:lcd0:1920x1080-32@60-edid clcd.lcd0_enable=1 clcd.lcd1_enable=0 root=\${root_device} rootfstype=ext4 rw net.ifnames=0" + setenv bootargs "console=ttyS0,115200n8 vmalloc=448M video=dovefb:lcd0:1920x1080-32@60-edid clcd.lcd0_enable=1 clcd.lcd1_enable=0 root=\${root_device} rootfstype=ext3 rw net.ifnames=0" setenv loadimage "\${fstype}load \${device_name} \${unit_no}:\${partition} 0x00200000 \${directory}\${image_name}" \$loadimage && bootm 0x00200000 @@ -335,7 +335,7 @@ sed -i -e 's/^#PermitRootLogin.*/PermitRootLogin yes/' "${basedir}"/kali-${archi echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos -parted ${imagename}.img --script -- mkpart primary ext4 0 100% +parted ${imagename}.img --script -- mkpart primary ext3 0 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -345,7 +345,7 @@ device="/dev/mapper/${device}" rootp=${device}p1 # Create file systems -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum -O ^64bit ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum -O ^64bit ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/efikamx.sh b/efikamx.sh index 91e517f..e98b2cb 100755 --- a/efikamx.sh +++ b/efikamx.sh @@ -227,7 +227,7 @@ cd "${basedir}" cat << EOF > "${basedir}"/kali-${architecture}/boot/boot.script setenv ramdisk uInitrd; setenv kernel uImage; -setenv bootargs console=tty1 root=/dev/mmcblk0p2 rootwait rootfstype=ext4 rw quiet; +setenv bootargs console=tty1 root=/dev/mmcblk0p2 rootwait rootfstype=ext3 rw quiet; \${loadcmd} \${ramdiskaddr} \${ramdisk}; if imi \${ramdiskaddr}; then; else setenv bootargs \${bootargs} noinitrd; @@ -249,7 +249,7 @@ echo "Creating image file for ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary ext2 4096s 266239s -parted ${imagename}.img --script -- mkpart primary ext4 266240s 100% +parted ${imagename}.img --script -- mkpart primary ext3 266240s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -260,7 +260,7 @@ rootp=${device}p2 # Create file systems mkfs.ext2 ${bootp} -mkfs.ext4 ${rootp} +mkfs.ext3 ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/gateworks_ventana.sh b/gateworks_ventana.sh index 20e9afc..a2ba481 100755 --- a/gateworks_ventana.sh +++ b/gateworks_ventana.sh @@ -224,7 +224,7 @@ apt-get --yes --download-only install kali-linux-default # We replace the u-boot menu defaults here so we can make sure the build system doesn't poison it. # We use _EOF_ so that the third-stage script doesn't end prematurely. cat << '_EOF_' > /etc/default/u-boot -U_BOOT_PARAMETERS="console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait panic=10 rw rootfstype=ext4 net.ifnames=0" +U_BOOT_PARAMETERS="console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait panic=10 rw rootfstype=ext3 net.ifnames=0" _EOF_ rm -f /usr/sbin/policy-rc.d @@ -335,7 +335,7 @@ sed -i -e 's/^#PermitRootLogin.*/PermitRootLogin yes/' "${basedir}"/kali-${archi # Not using extlinux.conf just yet... # Ensure we don't have root=/dev/sda3 in the extlinux.conf which comes from running u-boot-menu in a cross chroot. -#sed -i -e 's/append.*/append root=\/dev\/mmcblk0p1 rootfstype=ext4 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 console=ttymxc0,115200n8 console=tty1 consoleblank=0 rw rootwait/g' "${basedir}"/kali-${architecture}/boot/extlinux/extlinux.conf +#sed -i -e 's/append.*/append root=\/dev\/mmcblk0p1 rootfstype=ext3 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 console=ttymxc0,115200n8 console=tty1 consoleblank=0 rw rootwait/g' "${basedir}"/kali-${architecture}/boot/extlinux/extlinux.conf # Create the boot script that is expected for the ventana machine cat << '__EOF__' > "${basedir}"/kali-${architecture}/boot/6x_bootscript-ventana.script @@ -469,17 +469,17 @@ if itest.s "x${dtype}" == "xnand" ; then setenv fsload "ubifsload" elif itest.s "x${dtype}" == "xmmc" ; then echo "Booting from MMC..." - setenv root "root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait init=/lib/systemd/systemd" - setenv fsload "ext4load $dtype 0:1" + setenv root "root=/dev/mmcblk0p1 rw rootfstype=ext3 rootwait init=/lib/systemd/systemd" + setenv fsload "ext3load $dtype 0:1" setenv rd_addr # ramdisk not needed for IMX6 MMC elif itest.s "x${dtype}" == "xusb" ; then echo "Booting from USB Mass Storage..." setenv root "root=/dev/sda1 rootwait" - setenv fsload "ext4load $dtype 0:1" + setenv fsload "ext3load $dtype 0:1" elif itest.s "x${dtype}" == "xsata" ; then echo "Booting from SATA..." setenv root "root=/dev/sda1 rootwait" - setenv fsload "ext4load $dtype 0:1" + setenv fsload "ext3load $dtype 0:1" setenv rd_addr # ramdisk not needed for IMX6 AHCI SATA fi @@ -524,7 +524,7 @@ mkimage -A arm -T script -C none -d "${basedir}"/kali-${architecture}/boot/6x_bo echo "Creating image file for ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos -parted ${imagename}.img --script -- mkpart primary ext4 2048s 100% +parted ${imagename}.img --script -- mkpart primary ext3 2048s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -534,7 +534,7 @@ device="/dev/mapper/${device}" rootp=${device}p1 # Create file systems -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/kalitap.sh b/kalitap.sh index 9690727..5fb90e3 100755 --- a/kalitap.sh +++ b/kalitap.sh @@ -327,7 +327,7 @@ loadinitrd=load mmc \${mmcdev}:\${mmcpart} \${initrd_addr} \${initrd_file}; sete loadfdt=load mmc \${mmcdev}:\${mmcpart} \${fdtaddr} \${fdtfile} console=ttyO0,115200n8 mmcroot=/dev/mmcblk0p2 -mmcrootfstype=ext4 +mmcrootfstype=ext3 mmcargs=setenv bootargs console=\${console} root=\${mmcroot} rootfstype=\${mmcrootfstype} \${optargs} uenvcmd=run loadimage; run loadfdt; run mmcargs; bootz \${loadaddr} - \${fdtaddr} EOF @@ -351,7 +351,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 2048s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% parted ${imagename}.img --script -- set 1 boot on # Set the partition variables @@ -364,7 +364,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat -F 16 ${bootp} -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/luna.sh b/luna.sh index 2ae651b..0ac79f7 100755 --- a/luna.sh +++ b/luna.sh @@ -292,7 +292,7 @@ loadfdt=load mmc \${mmcdev}:\${mmcpart} \${fdtaddr} /dtbs/\${fdtfile} console=ttyO0,115200n8 mmcroot=/dev/mmcblk0p2 ro -mmcrootfstype=ext4 rootwait fixrtc net.ifnames=0 +mmcrootfstype=ext3 rootwait fixrtc net.ifnames=0 mmcargs=setenv bootargs console=\${console} root=\${mmcroot} rootfstype=\${mmcrootfstype} \${optargs} #zImage: @@ -306,7 +306,7 @@ echo "Creating image file for LUNA" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 2048s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -318,7 +318,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat -F 16 ${bootp} -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/mini-x.sh b/mini-x.sh index 6d11c3e..20144b3 100755 --- a/mini-x.sh +++ b/mini-x.sh @@ -212,7 +212,7 @@ apt download fontconfig # We replace the u-boot menu defaults here so we can make sure the build system doesn't poison it. # We use _EOF_ so that the third-stage script doesn't end prematurely. cat << '_EOF_' > /etc/default/u-boot -U_BOOT_PARAMETERS="console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait panic=10 rw rootfstype=ext4 net.ifnames=0" +U_BOOT_PARAMETERS="console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait panic=10 rw rootfstype=ext3 net.ifnames=0" _EOF_ rm -f /usr/sbin/policy-rc.d @@ -262,13 +262,13 @@ sed -i -e 's/^#PermitRootLogin.*/PermitRootLogin yes/' "${basedir}"/kali-${archi # Build system will insert it's root filesystem into the extlinux.conf file so # we sed it out, this only affects build time, not upgrading the kernel on the # device itself. -sed -i -e 's/append.*/append console=ttyS0,115200 console=tty1 root=\/dev\/mmcblk0p1 rootwait panic=10 rw rootfstype=ext4 net.ifnames=0/g' "${basedir}"/kali-${architecture}/boot/extlinux/extlinux.conf +sed -i -e 's/append.*/append console=ttyS0,115200 console=tty1 root=\/dev\/mmcblk0p1 rootwait panic=10 rw rootfstype=ext3 net.ifnames=0/g' "${basedir}"/kali-${architecture}/boot/extlinux/extlinux.conf # Create the disk and partition it echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos -parted ${imagename}.img --script -- mkpart primary ext4 2048s 100% +parted ${imagename}.img --script -- mkpart primary ext3 2048s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -278,7 +278,7 @@ device="/dev/mapper/${device}" rootp=${device}p1 # Create file systems -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/nanopi2.sh b/nanopi2.sh index 5fa3a86..ed73209 100755 --- a/nanopi2.sh +++ b/nanopi2.sh @@ -393,8 +393,8 @@ let RAW_SIZE=(${RAW_SIZE_MB}*1000*1000)/${BLOCK_SIZE} echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=${BLOCK_SIZE} count=0 seek=${RAW_SIZE} parted ${imagename}.img --script -- mklabel msdos -parted ${imagename}.img --script -- mkpart primary ext4 2048s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 2048s 264191s +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -405,8 +405,8 @@ bootp=${device}p1 rootp=${device}p2 # Create file systems -mkfs.ext4 ${bootp} -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 ${bootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root @@ -457,7 +457,7 @@ cat << EOF > ${basedir}/bootloader/env.conf # (http://www.friendlyarm.com) # -bootargs console=ttyAMA0,115200n8 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rw consoleblank=0 net.ifnames=0 +bootargs console=ttyAMA0,115200n8 root=/dev/mmcblk0p2 rootfstype=ext3 rootwait rw consoleblank=0 net.ifnames=0 bootdelay 1 EOF diff --git a/nanopi3.sh b/nanopi3.sh index f0f9e99..b42a9c4 100755 --- a/nanopi3.sh +++ b/nanopi3.sh @@ -350,8 +350,8 @@ let RAW_SIZE=(${RAW_SIZE_MB}*1000*1000)/${BLOCK_SIZE} echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=${BLOCK_SIZE} count=0 seek=${RAW_SIZE} parted ${imagename}.img --script -- mklabel msdos -parted ${imagename}.img --script -- mkpart primary ext4 2048s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 2048s 264191s +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -362,8 +362,8 @@ bootp=${device}p1 rootp=${device}p2 # Create file systems -mkfs.ext4 ${bootp} -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 ${bootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root @@ -411,7 +411,7 @@ cat << EOF > "${basedir}"/bootloader/env.conf # (http://www.friendlyarm.com) # -bootargs console=ttySAC0,115200n8 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rw consoleblank=0 net.ifnames=0 +bootargs console=ttySAC0,115200n8 root=/dev/mmcblk0p2 rootfstype=ext3 rootwait rw consoleblank=0 net.ifnames=0 bootdelay 1 EOF diff --git a/nanopineoplus2-minimal.sh b/nanopineoplus2-minimal.sh index da290e2..738a71b 100755 --- a/nanopineoplus2-minimal.sh +++ b/nanopineoplus2-minimal.sh @@ -477,7 +477,7 @@ fdt set ethernet0 local-mac-address \${mac_node} fdt set mmc\${boot_mmc} boot_device <1> setenv fbcon map:0 -setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait fsck.repair=\${fsck.repair} panic=10 \${extra} fbcon=\${fbcon} ipv6.disable=1 +setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext3 rw rootwait fsck.repair=\${fsck.repair} panic=10 \${extra} fbcon=\${fbcon} ipv6.disable=1 #booti \${kernel_addr} \${ramdisk_addr}:500000 \${dtb_addr} booti \${kernel_addr} - \${dtb_addr} EOF @@ -497,8 +497,8 @@ echo "the above is how big the sdcard needs to be" echo "Creating image file for NanoPi NEO Plus2" dd if=/dev/zero of=${basedir}/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos -parted ${imagename}.img --script -- mkpart primary ext4 4096s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 4096s 264191s +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show ${basedir}/${imagename}.img` @@ -510,7 +510,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p ${basedir}/root diff --git a/nanopineoplus2.sh b/nanopineoplus2.sh index e6b881c..69830bc 100755 --- a/nanopineoplus2.sh +++ b/nanopineoplus2.sh @@ -480,7 +480,7 @@ fdt set ethernet0 local-mac-address \${mac_node} fdt set mmc\${boot_mmc} boot_device <1> setenv fbcon map:0 -setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait fsck.repair=\${fsck.repair} panic=10 \${extra} fbcon=\${fbcon} ipv6.disable=1 +setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext3 rw rootwait fsck.repair=\${fsck.repair} panic=10 \${extra} fbcon=\${fbcon} ipv6.disable=1 #booti \${kernel_addr} \${ramdisk_addr}:500000 \${dtb_addr} booti \${kernel_addr} - \${dtb_addr} EOF @@ -500,8 +500,8 @@ echo "the above is how big the sdcard needs to be" echo "Creating image file for NanoPi NEO Plus2" dd if=/dev/zero of=${basedir}/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos -parted ${imagename}.img --script -- mkpart primary ext4 4096s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 4096s 264191s +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show ${basedir}/${imagename}.img` @@ -513,7 +513,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p ${basedir}/root diff --git a/odroid-c.sh b/odroid-c.sh index 29fae03..425dbc4 100755 --- a/odroid-c.sh +++ b/odroid-c.sh @@ -380,7 +380,7 @@ if test "\${hpd}" = "0"; then setenv hdmi_hpd "disablehpd=true"; fi if test "\${cec}" = "1"; then setenv hdmi_cec "hdmitx=cecf"; fi # Boot Arguments -setenv bootargs "root=/dev/mmcblk0p2 rootfstype=ext4 quiet rootwait rw \${condev} no_console_suspend vdaccfg=0xa000 logo=osd1,loaded,0x7900000,720p,full dmfc=3 cvbsmode=576cvbs hdmimode=\${m} m_bpp=\${m_bpp} vout=\${vout_mode} \${disableuhs} \${hdmi_hpd} \${hdmi_cec} \${enabledac} net.ifnames=0" +setenv bootargs "root=/dev/mmcblk0p2 rootfstype=ext3 quiet rootwait rw \${condev} no_console_suspend vdaccfg=0xa000 logo=osd1,loaded,0x7900000,720p,full dmfc=3 cvbsmode=576cvbs hdmimode=\${m} m_bpp=\${m_bpp} vout=\${vout_mode} \${disableuhs} \${hdmi_hpd} \${hdmi_cec} \${enabledac} net.ifnames=0" # Booting fatload mmc 0:1 0x21000000 uImage @@ -533,7 +533,7 @@ echo "Creating image file for ODROID-C1" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 3072s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -545,7 +545,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/odroid-c2-mainline.sh b/odroid-c2-mainline.sh index 5d71ae6..9b20a2f 100755 --- a/odroid-c2-mainline.sh +++ b/odroid-c2-mainline.sh @@ -416,7 +416,7 @@ setenv fdt_high "0xffffffff" setenv kernel_filename Image setenv fdt_filename meson-gxbb-odroidc2.dtb if test "${devtype}" = "mmc"; then part uuid ${devtype} ${devnum}:2 rootpartuuid; fi -setenv bootargs "root=PARTUUID=${rootpartuuid} rootfstype=ext4 rootwait rw net.ifnames=0 ipv6.disable=1" +setenv bootargs "root=PARTUUID=${rootpartuuid} rootfstype=ext3 rootwait rw net.ifnames=0 ipv6.disable=1" # Without an initramfs setenv bootcmd "load ${devtype} ${devnum}:${partition} '${loadaddr}' '${kernel_filename}'; load ${devtype} ${devnum}:${partition} '${dtb_loadaddr}' '${fdt_filename}'; booti '${loadaddr}' - '${dtb_loadaddr}'" # With an initramfs @@ -439,8 +439,8 @@ let RAW_SIZE=(${RAW_SIZE_MB}*1000*1000)/${BLOCK_SIZE} echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=${BLOCK_SIZE} count=0 seek=${RAW_SIZE} parted ${imagename}.img --script -- mklabel msdos -parted ${imagename}.img --script -- mkpart primary ext4 4096s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 4096s 264191s +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -451,8 +451,8 @@ bootp=${device}p1 rootp=${device}p2 # Create file systems -mkfs.ext4 -L boot ${bootp} -mkfs.ext4 -L rootfs ${rootp} +mkfs.ext3 -L boot ${bootp} +mkfs.ext3 -L rootfs ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/odroid-c2.sh b/odroid-c2.sh index 8d3a25a..d7cf97c 100755 --- a/odroid-c2.sh +++ b/odroid-c2.sh @@ -685,7 +685,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 2048s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -697,7 +697,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat -F 32 -n boot ${bootp} -mkfs.ext4 -O ^flex_bg -O ^metadata_csum -L rootfs ${rootp} +mkfs.ext3 -O ^flex_bg -O ^metadata_csum -L rootfs ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/odroid-u2.sh b/odroid-u2.sh index 3cf1531..5bcc3e7 100755 --- a/odroid-u2.sh +++ b/odroid-u2.sh @@ -337,7 +337,7 @@ cat << EOF > "${basedir}"/kali-${architecture}/boot/boot.txt setenv initrd_high "0xffffffff" setenv fdt_high "0xffffffff" setenv bootcmd "fatload mmc 0:1 0x40008000 zImage; fatload mmc 0:1 0x42000000 uInitrd; bootm 0x40008000 0x42000000" -setenv bootargs "console=tty1 console=ttySAC1,115200n8 root=/dev/mmcblk0p2 rootwait mem=2047M rw rootfstype=ext4 net.ifnames=0" +setenv bootargs "console=tty1 console=ttySAC1,115200n8 root=/dev/mmcblk0p2 rootwait mem=2047M rw rootfstype=ext3 net.ifnames=0" boot EOF @@ -356,7 +356,7 @@ echo "Creating image file for ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 2048s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -368,8 +368,8 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -# Disable 64bit on ext4 because the u-boot from 2010 is too old. -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +# Disable 64bit on ext3 because the u-boot from 2010 is too old. +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/odroid-w-devkit.sh b/odroid-w-devkit.sh index 3ff4249..6a42c7e 100755 --- a/odroid-w-devkit.sh +++ b/odroid-w-devkit.sh @@ -293,7 +293,7 @@ cd "${basedir}" # Create cmdline.txt file cat << EOF > "${basedir}"/kali-${architecture}/boot/cmdline.txt -dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext4 rootwait fbcon=map:10 net.ifnames=0 rw +dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext3 rootwait fbcon=map:10 net.ifnames=0 rw EOF # Create config.txt file @@ -374,7 +374,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 0 64 -parted ${imagename}.img --script -- mkpart primary ext4 64 -1 +parted ${imagename}.img --script -- mkpart primary ext3 64 -1 # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -386,7 +386,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/odroid-w.sh b/odroid-w.sh index f97593c..b3cd0ae 100755 --- a/odroid-w.sh +++ b/odroid-w.sh @@ -289,7 +289,7 @@ cd "${basedir}" # Create cmdline.txt file cat << EOF > "${basedir}"/kali-${architecture}/boot/cmdline.txt -dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext4 rootwait net.ifnames=0 rw +dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext3 rootwait net.ifnames=0 rw EOF # rpi-wiggle @@ -309,7 +309,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 0 64 -parted ${imagename}.img --script -- mkpart primary ext4 64 -1 +parted ${imagename}.img --script -- mkpart primary ext3 64 -1 # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -321,7 +321,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/odroid-xu.sh b/odroid-xu.sh index a21c5f8..e5c8689 100755 --- a/odroid-xu.sh +++ b/odroid-xu.sh @@ -358,7 +358,7 @@ setenv fb_x_res "1280" setenv fb_y_res "720" setenv hdmi_phy_res "720" setenv bootcmd "fatload mmc 0:1 0x40008000 zImage; fatload mmc 0:1 0x42000000 uInitrd; bootz 0x40008000 0x42000000" -setenv bootargs "console=tty1 console=ttySAC2,115200n8 vmalloc=512M fb_x_res=\${fb_x_res} fb_y_res=\${fb_y_res} hdmi_phy_res=\${hdmi_phy_res} vout=hdmi led_blink=1 fake_fb=true root=/dev/mmcblk0p2 rootwait rootfstype=ext4 rw net.ifnames=0" +setenv bootargs "console=tty1 console=ttySAC2,115200n8 vmalloc=512M fb_x_res=\${fb_x_res} fb_y_res=\${fb_y_res} hdmi_phy_res=\${hdmi_phy_res} vout=hdmi led_blink=1 fake_fb=true root=/dev/mmcblk0p2 rootwait rootfstype=ext3 rw net.ifnames=0" boot EOF @@ -369,7 +369,7 @@ setenv fb_x_res "1920" setenv fb_y_res "1080" setenv hdmi_phy_res "1080" setenv bootcmd "fatload mmc 0:1 0x40008000 zImage; fatload mmc 0:1 0x42000000 uInitrd; bootz 0x40008000 0x42000000" -setenv bootargs "console=tty1 console=ttySAC2,115200n8 vmalloc=512M fb_x_res=\${fb_x_res} fb_y_res=\${fb_y_res} hdmi_phy_res=\${hdmi_phy_res} vout=hdmi led_blink=1 fake_fb=true root=/dev/mmcblk0p2 rootwait rw rootfstype=ext4 net.ifnames=0" +setenv bootargs "console=tty1 console=ttySAC2,115200n8 vmalloc=512M fb_x_res=\${fb_x_res} fb_y_res=\${fb_y_res} hdmi_phy_res=\${hdmi_phy_res} vout=hdmi led_blink=1 fake_fb=true root=/dev/mmcblk0p2 rootwait rw rootfstype=ext3 net.ifnames=0" boot EOF @@ -390,7 +390,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 3072s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -402,7 +402,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/odroid-xu3.sh b/odroid-xu3.sh index edbad09..6e3b0a5 100755 --- a/odroid-xu3.sh +++ b/odroid-xu3.sh @@ -318,7 +318,7 @@ setenv macaddr "00:1e:06:61:7a:39" #------------------------------------------------------------------------------------------------------ # Basic Ubuntu Setup. Don't touch unless you know what you are doing. # -------------------------------- -setenv bootrootfs "console=tty1 console=ttySAC2,115200n8 root=/dev/mmcblk0p2 rootwait rootfstype=ext4 net.ifnames=0 rw" +setenv bootrootfs "console=tty1 console=ttySAC2,115200n8 root=/dev/mmcblk0p2 rootwait rootfstype=ext3 net.ifnames=0 rw" # boot commands # Uncomment the following if you use an initrd @@ -369,7 +369,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 3072s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -381,7 +381,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/pinebook-pro.sh b/pinebook-pro.sh index 7fc1cc8..ecb66cd 100755 --- a/pinebook-pro.sh +++ b/pinebook-pro.sh @@ -839,7 +839,7 @@ EOF echo "Creating image file for ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos -parted ${imagename}.img --script -- mkpart primary ext4 2048s 100% +parted ${imagename}.img --script -- mkpart primary ext3 2048s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -849,7 +849,7 @@ device="/dev/mapper/${device}" rootp=${device}p1 # Create file systems -mkfs.ext4 ${rootp} +mkfs.ext3 ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/pinebook.sh b/pinebook.sh index 046996a..79aa67d 100755 --- a/pinebook.sh +++ b/pinebook.sh @@ -241,7 +241,7 @@ apt --yes --download-only install kali-linux-default # We replace the u-boot menu defaults here so we can make sure the build system doesn't poison it. # We use _EOF_ so that the third-stage script doesn't end prematurely. cat << '_EOF_' > /etc/default/u-boot -U_BOOT_PARAMETERS="console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait panic=10 rw rootfstype=ext4 net.ifnames=0" +U_BOOT_PARAMETERS="console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait panic=10 rw rootfstype=ext3 net.ifnames=0" U_BOOT_MENU_LABEL="Kali Linux" _EOF_ @@ -350,12 +350,12 @@ chmod 755 "${basedir}"/kali-${architecture}/etc/init.d/zram sed -i -e 's/^#PermitRootLogin.*/PermitRootLogin yes/' "${basedir}"/kali-${architecture}/etc/ssh/sshd_config # Ensure we don't have root=/dev/sda3 in the extlinux.conf which comes from running u-boot-menu in a cross chroot. -sed -i -e 's/append.*/append root=\/dev\/mmcblk0p1 rootfstype=ext4 console=ttyS0,115200 console=tty1 consoleblank=0 rw rootwait/g' "${basedir}"/kali-${architecture}/boot/extlinux/extlinux.conf +sed -i -e 's/append.*/append root=\/dev\/mmcblk0p1 rootfstype=ext3 console=ttyS0,115200 console=tty1 consoleblank=0 rw rootwait/g' "${basedir}"/kali-${architecture}/boot/extlinux/extlinux.conf echo "Creating image file for ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos -parted ${imagename}.img --script -- mkpart primary ext4 2048s 100% +parted ${imagename}.img --script -- mkpart primary ext3 2048s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -365,7 +365,7 @@ device="/dev/mapper/${device}" rootp=${device}p1 # Create file systems -mkfs.ext4 ${rootp} +mkfs.ext3 ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/riot.sh b/riot.sh index 86333f4..cda1acb 100755 --- a/riot.sh +++ b/riot.sh @@ -318,7 +318,7 @@ cd "${basedir}" #loadkernel=load \${dtype} \${disk}:1 \${loadaddr} zImage -#bargs=setenv bootargs console=ttymxc1,115200n8 rootwait root=PARTUUID=\${btpart} net.ifnames=0 rootfstype=ext4 +#bargs=setenv bootargs console=ttymxc1,115200n8 rootwait root=PARTUUID=\${btpart} net.ifnames=0 rootfstype=ext3 #loadfdt=load \${dtype} \${disk}:1 0x11000000 \${fdt_file} @@ -335,7 +335,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 2048s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -347,7 +347,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 ${rootp} +mkfs.ext3 ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/rpi-hyperpixel.sh b/rpi-hyperpixel.sh index 0901b9d..347e779 100755 --- a/rpi-hyperpixel.sh +++ b/rpi-hyperpixel.sh @@ -354,7 +354,7 @@ cd "${basedir}" # Create cmdline.txt file cat << EOF > "${basedir}"/kali-${architecture}/boot/cmdline.txt -dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext4 rootwait net.ifnames=0 +dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext3 rootwait net.ifnames=0 EOF # systemd doesn't seem to be generating the fstab properly for some people, so @@ -362,7 +362,7 @@ EOF cat << EOF > "${basedir}"/kali-${architecture}/etc/fstab # proc /proc proc nodev,noexec,nosuid 0 0 -/dev/mmcblk0p2 / ext4 errors=remount-ro 0 1 +/dev/mmcblk0p2 / ext3 errors=remount-ro 0 1 # Change this if you add a swap partition or file #/dev/SWAP none swap sw 0 0 /dev/mmcblk0p1 /boot vfat noauto 0 0 @@ -416,7 +416,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 0 128 -parted ${imagename}.img --script -- mkpart primary ext4 128 -1 +parted ${imagename}.img --script -- mkpart primary ext3 128 -1 # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -428,7 +428,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 ${rootp} +mkfs.ext3 ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/rpi-tft.sh b/rpi-tft.sh index 3c0ae45..e2a81f2 100755 --- a/rpi-tft.sh +++ b/rpi-tft.sh @@ -308,7 +308,7 @@ EOF # Create cmdline.txt file cat << EOF > "${basedir}"/kali-${architecture}/boot/cmdline.txt -dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext4 rootwait net.ifnames=0 +dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext3 rootwait net.ifnames=0 EOF # systemd doesn't seem to be generating the fstab properly for some people, so @@ -316,7 +316,7 @@ EOF cat << EOF > "${basedir}"/kali-${architecture}/etc/fstab # proc /proc proc nodev,noexec,nosuid 0 0 -/dev/mmcblk0p2 / ext4 errors=remount-ro 0 1 +/dev/mmcblk0p2 / ext3 errors=remount-ro 0 1 # Change this if you add a swap partition or file #/dev/SWAP none swap sw 0 0 /dev/mmcblk0p1 /boot vfat noauto 0 0 @@ -350,7 +350,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 0 128 -parted ${imagename}.img --script -- mkpart primary ext4 128 -1 +parted ${imagename}.img --script -- mkpart primary ext3 128 -1 # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -362,7 +362,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/rpi.sh b/rpi.sh index 58bfe09..1210710 100755 --- a/rpi.sh +++ b/rpi.sh @@ -325,7 +325,7 @@ cd "${basedir}" # Create cmdline.txt file cat << EOF > "${basedir}"/kali-${architecture}/boot/cmdline.txt -dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext4 rootwait net.ifnames=0 +dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext3 rootwait net.ifnames=0 EOF # systemd doesn't seem to be generating the fstab properly for some people, so @@ -333,7 +333,7 @@ EOF cat << EOF > "${basedir}"/kali-${architecture}/etc/fstab # proc /proc proc nodev,noexec,nosuid 0 0 -/dev/mmcblk0p2 / ext4 errors=remount-ro 0 1 +/dev/mmcblk0p2 / ext3 errors=remount-ro 0 1 # Change this if you add a swap partition or file #/dev/SWAP none swap sw 0 0 /dev/mmcblk0p1 /boot vfat noauto 0 0 @@ -362,7 +362,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 0 128 -parted ${imagename}.img --script -- mkpart primary ext4 128 -1 +parted ${imagename}.img --script -- mkpart primary ext3 128 -1 # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -374,7 +374,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 ${rootp} +mkfs.ext3 ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/rpi0w-nexmon-minimal.sh b/rpi0w-nexmon-minimal.sh index f46fc62..cee0dde 100755 --- a/rpi0w-nexmon-minimal.sh +++ b/rpi0w-nexmon-minimal.sh @@ -395,7 +395,7 @@ chmod 755 "${basedir}"/kali-${architecture}/usr/bin/kalipi-config # Create cmdline.txt file cat << EOF > "${basedir}"/kali-${architecture}/boot/cmdline.txt -dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait +dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext3 elevator=deadline fsck.repair=yes rootwait EOF # systemd doesn't seem to be generating the fstab properly for some people, so @@ -404,7 +404,7 @@ cat << EOF > "${basedir}"/kali-${architecture}/etc/fstab # proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 2 -/dev/mmcblk0p2 / ext4 defaults,noatime 0 1 +/dev/mmcblk0p2 / ext3 defaults,noatime 0 1 EOF # rpi-wiggle @@ -435,7 +435,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 0 128 -parted ${imagename}.img --script -- mkpart primary ext4 128 -1 +parted ${imagename}.img --script -- mkpart primary ext3 128 -1 # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -447,7 +447,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 ${rootp} +mkfs.ext3 ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/rpi0w-nexmon-p4wnp1-aloa.sh b/rpi0w-nexmon-p4wnp1-aloa.sh index 10eb0cd..dc19be1 100755 --- a/rpi0w-nexmon-p4wnp1-aloa.sh +++ b/rpi0w-nexmon-p4wnp1-aloa.sh @@ -309,7 +309,7 @@ systemctl enable fake-hwclock # Create cmdline.txt file mkdir -p /boot -echo "dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait" > /boot/cmdline.txt +echo "dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext3 elevator=deadline fsck.repair=yes rootwait" > /boot/cmdline.txt # Install P4wnP1 A.L.O.A. cd /root/P4wnP1 @@ -478,7 +478,7 @@ cat << EOF > "${basedir}"/kali-${architecture}/etc/fstab # proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 2 -/dev/mmcblk0p2 / ext4 defaults,noatime 0 1 +/dev/mmcblk0p2 / ext3 defaults,noatime 0 1 EOF @@ -530,7 +530,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 0 128 -parted ${imagename}.img --script -- mkpart primary ext4 128 -1 +parted ${imagename}.img --script -- mkpart primary ext3 128 -1 # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -542,7 +542,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 ${rootp} +mkfs.ext3 ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/rpi0w-nexmon.sh b/rpi0w-nexmon.sh index d44f727..535c3ad 100755 --- a/rpi0w-nexmon.sh +++ b/rpi0w-nexmon.sh @@ -392,7 +392,7 @@ chmod 755 "${basedir}"/kali-${architecture}/usr/bin/kalipi-config # Create cmdline.txt file cat << EOF > "${basedir}"/kali-${architecture}/boot/cmdline.txt -dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait +dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext3 elevator=deadline fsck.repair=yes rootwait EOF # systemd doesn't seem to be generating the fstab properly for some people, so @@ -401,7 +401,7 @@ cat << EOF > "${basedir}"/kali-${architecture}/etc/fstab # proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 2 -/dev/mmcblk0p2 / ext4 defaults,noatime 0 1 +/dev/mmcblk0p2 / ext3 defaults,noatime 0 1 EOF # rpi-wiggle @@ -432,7 +432,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 0 128 -parted ${imagename}.img --script -- mkpart primary ext4 128 -1 +parted ${imagename}.img --script -- mkpart primary ext3 128 -1 # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -444,7 +444,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 ${rootp} +mkfs.ext3 ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/rpi2.sh b/rpi2.sh index ef7a588..309fdde 100755 --- a/rpi2.sh +++ b/rpi2.sh @@ -324,7 +324,7 @@ EOF # Create cmdline.txt file cat << EOF > "${basedir}"/kali-${architecture}/boot/cmdline.txt -dwc_otg.fiq_fix_enable=2 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rootflags=noload net.ifnames=0 +dwc_otg.fiq_fix_enable=2 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext3 rootwait rootflags=noload net.ifnames=0 EOF # systemd doesn't seem to be generating the fstab properly for some people, so @@ -333,7 +333,7 @@ cat << EOF > "${basedir}"/kali-${architecture}/etc/fstab # proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 2 -/dev/mmcblk0p2 / ext4 defaults,noatime 0 1 +/dev/mmcblk0p2 / ext3 defaults,noatime 0 1 # This is a bit of a hack because of using Debian's raspi3-firmware package. tmpfs /boot/firmware tmpfs rw 0 0 EOF @@ -393,7 +393,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 0 128 -parted ${imagename}.img --script -- mkpart primary ext4 128 -1 +parted ${imagename}.img --script -- mkpart primary ext3 128 -1 # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -405,7 +405,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 ${rootp} +mkfs.ext3 ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root diff --git a/rpi3-64-lite.sh b/rpi3-64-lite.sh index c02d95d..48585b0 100755 --- a/rpi3-64-lite.sh +++ b/rpi3-64-lite.sh @@ -346,7 +346,7 @@ EOF # Create cmdline.txt file cat << EOF > "${basedir}"/kali-${architecture}/boot/cmdline.txt -dwc_otg.fiq_fix_enable=2 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rootflags=noload net.ifnames=0 +dwc_otg.fiq_fix_enable=2 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext3 rootwait rootflags=noload net.ifnames=0 EOF # systemd doesn't seem to be generating the fstab properly for some people, so @@ -355,7 +355,7 @@ cat << EOF > "${basedir}"/kali-${architecture}/etc/fstab # proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 2 -/dev/mmcblk0p2 / ext4 defaults,noatime 0 1 +/dev/mmcblk0p2 / ext3 defaults,noatime 0 1 EOF # Copy a default config, with everything commented out so people find it when @@ -414,7 +414,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=${BLOCK_SIZE} count=0 seek=${RAW_SIZE} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 0 128 -parted ${imagename}.img --script -- mkpart primary ext4 128 -1 +parted ${imagename}.img --script -- mkpart primary ext3 128 -1 # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -426,7 +426,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 ${rootp} +mkfs.ext3 ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root/ diff --git a/rpi3-debian.sh b/rpi3-debian.sh index 3bae02c..7be2ef5 100755 --- a/rpi3-debian.sh +++ b/rpi3-debian.sh @@ -349,7 +349,7 @@ echo "T0:23:respawn:/sbin/agetty -L ttyAMA0 115200 vt100" >> "${basedir}"/kali-$ cd "${basedir}" cat << EOF > "${basedir}"/kali-${architecture}/boot/cmdline.txt -dwc_otg.fiq_fix_enable=2 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rootflags=noload net.ifnames=0 +dwc_otg.fiq_fix_enable=2 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext3 rootwait rootflags=noload net.ifnames=0 EOF #cat << EOF > "${basedir}"/kali-${architecture}/etc/apt/sources.list @@ -363,7 +363,7 @@ cat << EOF > "${basedir}"/kali-${architecture}/etc/fstab # proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 2 -/dev/mmcblk0p2 / ext4 defaults,noatime 0 1 +/dev/mmcblk0p2 / ext3 defaults,noatime 0 1 EOF # Copy a default config, with everything commented out so people find it when @@ -407,7 +407,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=${BLOCK_SIZE} count=0 seek=${RAW_SIZE} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 0 128 -parted ${imagename}.img --script -- mkpart primary ext4 128 -1 +parted ${imagename}.img --script -- mkpart primary ext3 128 -1 # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -419,7 +419,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 ${rootp} +mkfs.ext3 ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root/ diff --git a/rpi3-nexmon-hyperpixel.sh b/rpi3-nexmon-hyperpixel.sh index a0d89fe..76eea88 100755 --- a/rpi3-nexmon-hyperpixel.sh +++ b/rpi3-nexmon-hyperpixel.sh @@ -353,7 +353,7 @@ echo "T0:23:respawn:/sbin/agetty -L ttyAMA0 115200 vt100" >> "${basedir}"/kali-$ cd "${basedir}" cat << EOF > "${basedir}"/kali-${architecture}/boot/cmdline.txt -dwc_otg.fiq_fix_enable=2 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rootflags=noload net.ifnames=0 +dwc_otg.fiq_fix_enable=2 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext3 rootwait rootflags=noload net.ifnames=0 EOF cat << EOF > "${basedir}"/kali-${architecture}/etc/apt/sources.list @@ -367,7 +367,7 @@ cat << EOF > "${basedir}"/kali-${architecture}/etc/fstab # proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 2 -/dev/mmcblk0p2 / ext4 defaults,noatime 0 1 +/dev/mmcblk0p2 / ext3 defaults,noatime 0 1 # This is a bit of a hack because of using Debian's raspi3-firmware package. tmpfs /boot/firmware tmpfs rw 0 0 EOF @@ -481,7 +481,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 0 128 -parted ${imagename}.img --script -- mkpart primary ext4 128 -1 +parted ${imagename}.img --script -- mkpart primary ext3 128 -1 # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -493,7 +493,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 ${rootp} +mkfs.ext3 ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root/ diff --git a/rpi3-nexmon.sh b/rpi3-nexmon.sh index e546b09..d3d8fc0 100755 --- a/rpi3-nexmon.sh +++ b/rpi3-nexmon.sh @@ -355,7 +355,7 @@ echo "T0:23:respawn:/sbin/agetty -L ttyAMA0 115200 vt100" >> "${basedir}"/kali-$ cd "${basedir}" cat << EOF > "${basedir}"/kali-${architecture}/boot/cmdline.txt -dwc_otg.fiq_fix_enable=2 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rootflags=noload net.ifnames=0 +dwc_otg.fiq_fix_enable=2 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext3 rootwait rootflags=noload net.ifnames=0 EOF cat << EOF > "${basedir}"/kali-${architecture}/etc/apt/sources.list @@ -369,7 +369,7 @@ cat << EOF > "${basedir}"/kali-${architecture}/etc/fstab # proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 2 -/dev/mmcblk0p2 / ext4 defaults,noatime 0 1 +/dev/mmcblk0p2 / ext3 defaults,noatime 0 1 EOF # Copy a default config, with everything commented out so people find it when @@ -412,7 +412,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=${BLOCK_SIZE} count=0 seek=${RAW_SIZE} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 0 128 -parted ${imagename}.img --script -- mkpart primary ext4 128 -1 +parted ${imagename}.img --script -- mkpart primary ext3 128 -1 # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -424,7 +424,7 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -mkfs.ext4 ${rootp} +mkfs.ext3 ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root/ diff --git a/trimslice.sh b/trimslice.sh index ba0bd51..74ebf2c 100755 --- a/trimslice.sh +++ b/trimslice.sh @@ -317,7 +317,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary ext2 2048s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -329,7 +329,7 @@ rootp=${device}p2 # Create file systems mkfs.ext2 ${bootp} -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/bootp "${basedir}"/root diff --git a/utilite.sh b/utilite.sh index 1969c91..3fe7330 100755 --- a/utilite.sh +++ b/utilite.sh @@ -331,7 +331,7 @@ cd "${basedir}" # Create a file to set up our u-boot environment cat << EOF > "${basedir}"/kali-${architecture}/boot/boot.txt setenv mmcdev 2 -setenv bootargs 'earlyprintk console=ttymxc3,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait net.ifnames=0' +setenv bootargs 'earlyprintk console=ttymxc3,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext3 rw rootwait net.ifnames=0' setenv loadaddr 0x10800000 setenv fdtaddr 0x15000000 setenv bootm_low 0x15000000 @@ -366,7 +366,7 @@ echo "Creating image file ${imagename}.img" dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size} parted ${imagename}.img --script -- mklabel msdos parted ${imagename}.img --script -- mkpart primary fat32 2048s 264191s -parted ${imagename}.img --script -- mkpart primary ext4 264192s 100% +parted ${imagename}.img --script -- mkpart primary ext3 264192s 100% # Set the partition variables loopdevice=`losetup -f --show "${basedir}"/${imagename}.img` @@ -378,9 +378,9 @@ rootp=${device}p2 # Create file systems mkfs.vfat ${bootp} -# The utilite uses an older kernel, and newer mkfs tools add extras to ext4, so +# The utilite uses an older kernel, and newer mkfs tools add extras to ext3, so # we disable them otherwise there will be a kernel panic at boot. -mkfs.ext4 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} +mkfs.ext3 -O ^64bit -O ^flex_bg -O ^metadata_csum ${rootp} # Create the dirs for the partitions and mount them mkdir -p "${basedir}"/root