mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
remove unnecessary file cleaning
This commit is contained in:
parent
8ee3cdac41
commit
881d999f67
1 changed files with 2 additions and 3 deletions
|
@ -1896,7 +1896,7 @@ btrfs_parts() {
|
||||||
if [ -n /tmp/.btrfs-devices ]; then
|
if [ -n /tmp/.btrfs-devices ]; then
|
||||||
for i in $(cat /tmp/.btrfs-devices); do
|
for i in $(cat /tmp/.btrfs-devices); do
|
||||||
BTRFS_DEVICES="$BTRFS_DEVICES#$i"
|
BTRFS_DEVICES="$BTRFS_DEVICES#$i"
|
||||||
# remove if no subvolume is used!
|
# remove device if no subvolume is used!
|
||||||
[ "$BTRFS_SUBVOLUME" = "NONE" ] && PARTS="$(echo $PARTS | sed -e "s#${i}\ _##g")"
|
[ "$BTRFS_SUBVOLUME" = "NONE" ] && PARTS="$(echo $PARTS | sed -e "s#${i}\ _##g")"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -1928,7 +1928,6 @@ select_btrfs_raid_devices () {
|
||||||
# select the second device to use, no missing option available!
|
# select the second device to use, no missing option available!
|
||||||
BTRFS_PART="$BTRFS_DEVICE"
|
BTRFS_PART="$BTRFS_DEVICE"
|
||||||
BTRFS_PARTS="$PARTS"
|
BTRFS_PARTS="$PARTS"
|
||||||
: >/tmp/.btrfs-devices
|
|
||||||
echo "$BTRFS_PART" >>/tmp/.btrfs-devices
|
echo "$BTRFS_PART" >>/tmp/.btrfs-devices
|
||||||
BTRFS_PARTS="$(echo $BTRFS_PARTS | sed -e "s#${BTRFS_PART}\ _##g")"
|
BTRFS_PARTS="$(echo $BTRFS_PARTS | sed -e "s#${BTRFS_PART}\ _##g")"
|
||||||
RAIDNUMBER=2
|
RAIDNUMBER=2
|
||||||
|
|
Loading…
Reference in a new issue