Skip to content

Commit

Permalink
move code more to the beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Oct 12, 2022
1 parent b890762 commit 3880aa5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/task_sysinfo
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
echo DEVICE partitions > /etc/mdadm/mdadm.conf
udevadm trigger

# start software raid
/usr/share/mdadm/mkconf > /etc/mdadm/mdadm.conf
/etc/init.d/lvm2 start

# first show some hardware info
echo Showing system information.

Expand Down Expand Up @@ -61,10 +65,6 @@ if [ -d /sys/firmware/efi ]; then
efibootmgr
fi

# start software raid
/usr/share/mdadm/mkconf > /etc/mdadm/mdadm.conf
/etc/init.d/lvm2 start

for device in /dev/sd?; do
[ -b "$device" ] || continue # make sure device exists and is valid block device
[ $(stat -c %G $device) = "disk" ] || continue
Expand Down

0 comments on commit 3880aa5

Please sign in to comment.