Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lkl tools: cpfromfs: fix root directory copy
Currently copying the disk image root is broken: cptofs -P 1 -t ext4 -i test.img ~/linux / cpfromfs -P 1 -t ext4 -i test.img / ~/linuxcopy leads to the following in ~/linuxcopy: /home/ec2-user/linuxcopy └── 0000fe01 ├── linux │ ├── arch The problem is that basename("/mnt/0000fe01/") returns 0000fe01 where we would expect /. Fix that by making the root folder copy case special. Reported-by: Dan Peebles <[email protected]> Signed-off-by: Octavian Purdila <[email protected]>
- Loading branch information