diff options
Diffstat (limited to 'remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions')
-rwxr-xr-x | remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions b/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions index 1f29ec7d..bd80890b 100755 --- a/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions +++ b/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions @@ -106,7 +106,7 @@ mount_partition () { mount -t auto -o noexec "$partition" "$mountpoint" || return $? fi fi - echo -e "${partition}\t${mountpoint}\tauto\t\tnoauto,noexec\t\t 0 0" >> "/etc/fstab" + echo "${partition}\t${mountpoint}\tauto\t\tnoauto,noexec\t\t 0 0" >> "/etc/fstab" } read_partitions () { @@ -123,7 +123,7 @@ read_partitions () { for part in $(cat /proc/partitions | tr -s ' ' | cut -d ' ' -f5 | grep -o -e "$hd[0-9][0-9]*$"); do LINE="/dev/$part " LINE=${LINE}$(sgdisk /dev/$hd -i ${part:3} | grep 'GUID code' | cut -d ' ' -f4) - echo -e $LINE >> "/etc/disk.partition" + echo $LINE >> "/etc/disk.partition" done fi done @@ -163,7 +163,7 @@ for PARTITION in $SLX_PARTITION_TABLE; do if diskfm "$tmppart"; then # echo "$tmppart is mounted to /mnt/tmp at $(sysup)" >/tmp/tmpready mount_temp "$mopt" "$tmppart" || continue - echo -e "${tmppart}\t/tmp\t\tauto\t\tnoexec\t 0 0" >> "/etc/fstab" + echo "${tmppart}\t/tmp\t\tauto\t\tnoexec\t 0 0" >> "/etc/fstab" HAVE_TEMP="yes" echo "$tmppart mounted on /tmp" else @@ -177,7 +177,7 @@ for PARTITION in $SLX_PARTITION_TABLE; do #mount -t auto ${openslxpart} /mnt/media/${openslxpart#/dev/*} \n\ #test -d /mnt/media/${openslxpart#/dev/*}/home && \ #ln -sf /media/${openslxpart#/dev/*} /var/home - echo -e "${openslxpart}\t/media/${openslxpart#/dev/*}\tauto\t\tnoauto\t\t 0 0" >> "/etc/fstab" + echo "${openslxpart}\t/media/${openslxpart#/dev/*}\tauto\t\tnoauto\t\t 0 0" >> "/etc/fstab" echo "special partition ${openslxpart} mounted on /media/${openslxpart#/dev/*}" done ;; @@ -185,7 +185,7 @@ for PARTITION in $SLX_PARTITION_TABLE; do # Check for standard swap partitions and make them available to the system HAVE_SWAP=no for swppart in $(grep -e "82$\|0657FD6D-A4AB-43C4-84E5-0933C84B4F4F$" /etc/disk.partition | cut -d ' ' -f1); do - echo -e "$swppart\tswap\t\tswap\t\tdefaults\t 0 0" >> "/etc/fstab" + echo "$swppart\tswap\t\tswap\t\tdefaults\t 0 0" >> "/etc/fstab" swapon "$swppart" -p 10 && HAVE_SWAP=yes # low priority, in case we have zram swap, prefer that) echo "swap partition found and activated" done @@ -210,7 +210,7 @@ done for linuxpart in $(grep -e "83$\|0FC63DAF-8483-4772-8E79-3D69D8477DE4$" /etc/disk.partition | cut -d ' ' -f1); do mountpoint="/media" mkdir -p "${mountpoint}/${linuxpart#/dev/*}" - echo -e "${linuxpart}\t${mountpoint}/${linuxpart#/dev/*}\tauto\t\tnoauto,noexec\t 0 0" >> "/etc/fstab" + echo "${linuxpart}\t${mountpoint}/${linuxpart#/dev/*}\tauto\t\tnoauto,noexec\t 0 0" >> "/etc/fstab" echo "linux partition ${linuxpart} mounted on ${mountpoint}/${linuxpart#/dev/*}" done |